diff --git a/components/Menu.vue b/components/Menu.vue index 52045a5..e74daa1 100644 --- a/components/Menu.vue +++ b/components/Menu.vue @@ -148,8 +148,11 @@ const handleLogout = async () => { const currentPath = props.currentPath || route.fullPath await $fetch('/api/auth/logout', { method: 'POST' }) - // Redirect back to the current page so user can continue browsing - await navigateTo(currentPath) + // Force a full page reload to refresh authentication state + // This ensures all components update correctly + if (import.meta.client) { + window.location.href = currentPath + } } // Close menu when clicking outside