Merge pull request #11936 from softue/auth-redirect

fix: redirection for users already logged in
This commit is contained in:
Timothy Jaeryang Baek
2025-03-21 12:33:52 -07:00
committed by GitHub

View File

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