1
0

fix(openid): use the full path when building the redirect url, not only the host

Resolves https://kolaente.dev/vikunja/api/issues/1661
This commit is contained in:
kolaente
2023-12-20 13:23:02 +01:00
parent 21e34d6d54
commit e98e5a0d2f
2 changed files with 4 additions and 9 deletions

View File

@ -27,7 +27,7 @@ function redirectToProviderIfNothingElseIsEnabled() {
(window.location.pathname.startsWith('/login') || window.location.pathname === '/') && // Kinda hacky, but prevents an endless loop.
window.location.search.includes('redirectToProvider=true')
) {
redirectToProvider(auth.openidConnect.providers[0], auth.openidConnect.redirectUrl)
redirectToProvider(auth.openidConnect.providers[0])
}
}