From be7556d250738011701e1c177a052fd67e91fd82 Mon Sep 17 00:00:00 2001 From: memdmp Date: Sun, 21 Sep 2025 01:56:36 +0200 Subject: fix: no blank next= infinite redirect, redir loop detections for missing scopes --- src/routes/login/callback/ok/+page.svelte | 63 ++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 5 deletions(-) (limited to 'src/routes/login/callback/ok/+page.svelte') diff --git a/src/routes/login/callback/ok/+page.svelte b/src/routes/login/callback/ok/+page.svelte index a71d962..75fb10c 100644 --- a/src/routes/login/callback/ok/+page.svelte +++ b/src/routes/login/callback/ok/+page.svelte @@ -1,13 +1,66 @@ - + {#if !loopDetected} + + {/if} + {#if mounted && !loopDetected} + + {/if} -

Redirecting...

-

If nothing happens, click here.

+{#if loopDetected} +

Loop Detected

+

+ We detected a possible redirect loop and as such did not automatically + continue. +

+

+ To continue anyway, click { + loopDetected = false; + sessionStorage.setItem('lastLoginRedirect', Date.now().toString()); + sessionStorage.removeItem('loopCheck'); + }}>here. +

+{:else} +

Redirecting...

+

If nothing happens, click here.

+{/if} -- cgit v1.2.3