fix: redirection for users already logged in
This commit is contained in:
@@ -140,7 +140,8 @@
|
||||
|
||||
onMount(async () => {
|
||||
if ($user !== undefined) {
|
||||
await goto('/');
|
||||
const redirectPath = querystringValue('redirect') || '/';
|
||||
goto(redirectPath);
|
||||
}
|
||||
await checkOauthCallback();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user