fix bookmarklet, React 19 no longer allows 'javascript:' urls

This commit is contained in:
Athou
2025-04-04 14:25:21 +02:00
parent 5ad4b97205
commit 0c0834b30f
2 changed files with 5 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ function NextUnreadBookmarklet() {
const { _ } = useLingui()
const baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("#"))
const href = `javascript:window.location.href='${baseUrl}next?category=${categoryId}&order=${order}&t='+new Date().getTime();`
const href = `${baseUrl}next?category=${categoryId}&order=${order}`
return (
<Box>

View File

@@ -3,13 +3,16 @@ quarkus.http.port=8082
quarkus.http.test-port=8085
quarkus.http.enable-compression=true
# static files
# http cache
## make sure the webapp is always up to date
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
quarkus.http.filter.index-html.matches=/
## make sure the openapi documentation is always up to date
quarkus.http.filter.openapi.header."Cache-Control"=no-cache
quarkus.http.filter.openapi.matches=/openapi[.](json|yaml)
## make sure /next always redirects to the next unread entry
quarkus.http.filter.next.header."Cache-Control"=no-cache
quarkus.http.filter.next.matches=/next
# security
quarkus.http.auth.basic=true