fix: redirect to login after credentials logout instead of crashing on current page (#5819)

Co-authored-by: Thomas <thomas@ajnart.fr>
This commit is contained in:
CopilotandThomas authored and GitHub committed 2026-06-05 16:56:24 +02:00
1 parent 0b663a7fc6
commit cc24f070db
3 files changed
+6 -5

No files matched your search

@@ -45,7 +45,7 @@ export const UserAvatarMenu = ({ children, availableUpdatesPromise }: UserAvatar
window.location.assign(logoutUrl);
return;
}
router.refresh();
router.push("/auth/login");
},
});
}, [logoutUrl, openModal, router]);