mirror of
https://github.com/open-webui/open-webui
synced 2025-06-10 16:38:21 +00:00
Merge pull request #11936 from softue/auth-redirect
fix: redirection for users already logged in
This commit is contained in:
commit
f872bda19b
@ -140,7 +140,8 @@
|
|||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if ($user !== undefined) {
|
if ($user !== undefined) {
|
||||||
await goto('/');
|
const redirectPath = querystringValue('redirect') || '/';
|
||||||
|
goto(redirectPath);
|
||||||
}
|
}
|
||||||
await checkOauthCallback();
|
await checkOauthCallback();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user