From 174e9565b8ab24cbb4b8b44454ec11bb7975b94e Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 11 Oct 2025 19:04:36 -0600 Subject: [PATCH] Fix logout navigation to use window.location.href Use window.location.href instead of navigateTo for API route to ensure proper server-side logout handling. --- nuxt4-app/app/components/UserMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt4-app/app/components/UserMenu.vue b/nuxt4-app/app/components/UserMenu.vue index 215dece..ccb3f45 100644 --- a/nuxt4-app/app/components/UserMenu.vue +++ b/nuxt4-app/app/components/UserMenu.vue @@ -3,7 +3,7 @@ const { loggedIn, user, clear } = useUserSession() const logout = async () => { await clear() - await navigateTo('/api/auth/logout') + window.location.href = '/api/auth/logout' }