allow external URLs in private instances

This commit is contained in:
Christian Beutel
2025-07-10 15:29:07 +02:00
parent d6e08e6d80
commit 68f36dbf0c
3 changed files with 15 additions and 3 deletions

View File

@@ -29,7 +29,7 @@
let { data, children }: Props = $props();
beforeNavigate((n) => {
if (!$currentUser && isRouteProtected(n.to?.url?.pathname ?? "")) {
if (!$currentUser && isRouteProtected(n.to?.url)) {
n.cancel();
goto("/login?r=" + n.to?.url?.pathname);
}