Fix OAuth login navigation - use full page reload instead of SPA navigation
All checks were successful
build-and-deploy / build (push) Successful in 31s
build-and-deploy / deploy (push) Successful in 4s

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:
2025-10-11 18:28:02 -06:00
parent 2f625b95d0
commit c681c8579d

View File

@@ -8,8 +8,8 @@ const route = useRoute()
const redirectPath = route.query.redirect as string || '/'
const login = () => {
// Navegar a la ruta de OAuth (ahora en /api/auth/authentik)
navigateTo('/api/auth/authentik')
// Hacer una navegación completa del navegador (no SPA) al endpoint de OAuth
window.location.href = '/api/auth/authentik'
}
</script>