1
0

feat: redirect to calculated url everywhere

This commit is contained in:
kolaente
2021-12-12 16:37:25 +01:00
committed by Gitea
parent ccaed029f2
commit b7aa7891e9
3 changed files with 12 additions and 5 deletions

View File

@ -83,7 +83,7 @@ export default {
ctx.state.auth.openidConnect.providers.length === 1 &&
window.location.pathname.startsWith('/login') // Kinda hacky, but prevents an endless loop.
) {
redirectToProvider(ctx.state.auth.openidConnect.providers[0], ctx.state.auth.openidConnect.redirectUrl)
redirectToProvider(ctx.state.auth.openidConnect.providers[0])
}
},
},