diff --git a/pages/login.vue b/pages/login.vue index 6e22048..7c40663 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -186,9 +186,12 @@ const handleLogin = async () => { }); if (result.success) { - // Handle redirect from the component + // Handle redirect from the component using window.location for reliability console.log('🔄 Login successful, redirecting to:', result.redirectTo); - await navigateTo(result.redirectTo || '/dashboard'); + const redirectUrl = result.redirectTo || '/dashboard'; + + // Use window.location for a reliable redirect + window.location.href = redirectUrl; } else { loginError.value = result.error || 'Login failed. Please check your credentials and try again.'; }