diff --git a/client/src/components/DashboardLayout.tsx b/client/src/components/DashboardLayout.tsx index 6e85690..801e73d 100644 --- a/client/src/components/DashboardLayout.tsx +++ b/client/src/components/DashboardLayout.tsx @@ -259,7 +259,10 @@ function DashboardLayoutContent({ { + await logout(); + setLocation('/'); + }} className="cursor-pointer text-destructive focus:text-destructive" > diff --git a/todo.md b/todo.md index 2ab87b4..c69f5fc 100644 --- a/todo.md +++ b/todo.md @@ -442,3 +442,8 @@ - [x] Créer une page LoginChoice avec boutons "Connexion Manus" et "Connexion locale" - [x] Modifier les routes pour afficher cette page en premier - [x] Tester le choix et les redirections + +## Correction redirection après déconnexion + +- [x] Modifier la procédure de déconnexion pour rediriger vers la page de choix (/) +- [x] Tester la déconnexion et vérifier la redirection