Fix OAuth login navigation - use full page reload instead of SPA navigation
The /api/auth/authentik endpoint is a server redirect, not a Nuxt route. Changed from navigateTo() to window.location.href for proper HTTP redirect.
This commit is contained in:
@@ -8,8 +8,8 @@ const route = useRoute()
|
|||||||
const redirectPath = route.query.redirect as string || '/'
|
const redirectPath = route.query.redirect as string || '/'
|
||||||
|
|
||||||
const login = () => {
|
const login = () => {
|
||||||
// Navegar a la ruta de OAuth (ahora en /api/auth/authentik)
|
// Hacer una navegación completa del navegador (no SPA) al endpoint de OAuth
|
||||||
navigateTo('/api/auth/authentik')
|
window.location.href = '/api/auth/authentik'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user