diff --git a/src/stores/auth.ts b/src/stores/auth.ts index c5410f63f..17f8a1dd7 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -23,7 +23,7 @@ function redirectToProviderIfNothingElseIsEnabled() { auth.local.enabled === false && auth.openidConnect.enabled && auth.openidConnect.providers?.length === 1 && - window.location.pathname.startsWith('/login') // Kinda hacky, but prevents an endless loop. + (window.location.pathname.startsWith('/login') || window.location.pathname === '/') // Kinda hacky, but prevents an endless loop. ) { redirectToProvider(auth.openidConnect.providers[0], auth.openidConnect.redirectUrl) }