Sfoglia il codice sorgente

fix: redirection for users already logged in

Rômulo Mendes Figueiredo 1 mese fa
parent
commit
c4c6e02b4c
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/routes/auth/+page.svelte

+ 2 - 1
src/routes/auth/+page.svelte

@@ -140,7 +140,8 @@
 
 	onMount(async () => {
 		if ($user !== undefined) {
-			await goto('/');
+			const redirectPath = querystringValue('redirect') || '/';
+			goto(redirectPath);
 		}
 		await checkOauthCallback();