diff --git a/components/Menu.vue b/components/Menu.vue index 87fa738..52045a5 100644 --- a/components/Menu.vue +++ b/components/Menu.vue @@ -145,8 +145,11 @@ const toggleMenu = () => { const handleLogout = async () => { isOpen.value = false + const currentPath = props.currentPath || route.fullPath await $fetch('/api/auth/logout', { method: 'POST' }) - await navigateTo('/login') + + // Redirect back to the current page so user can continue browsing + await navigateTo(currentPath) } // Close menu when clicking outside