From 0a330c4d93f7e4a0bed91d15ee739feb891e9fce Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sat, 1 Mar 2025 13:23:25 +0100 Subject: [PATCH] mod redirect --- src/routes/auth/+page.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 1e9bc2d..08786ab 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -49,6 +49,10 @@ const redirectPath = querystringValue('redirect') || '/'; goto(redirectPath); } + else + { + goto(`${WEBUI_BASE_URL}/oauth/oidc/login`); + } }; const signInHandler = async () => { @@ -398,9 +402,6 @@ {$i18n.t('Continue with {{provider}}', { provider: 'GitHub' })} {/if} - {#if $config?.oauth?.providers?.oidc} - goto(`${WEBUI_BASE_URL}/oauth/oidc/login`); - {/if} {#if $config?.oauth?.providers?.oidc}