diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 0accf85cc..be8989002 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -140,7 +140,8 @@ onMount(async () => { if ($user !== undefined) { - await goto('/'); + const redirectPath = querystringValue('redirect') || '/'; + goto(redirectPath); } await checkOauthCallback();