From 8c2419d1a72381e59ae228a5b4328217a6773c21 Mon Sep 17 00:00:00 2001 From: mwpn Date: Thu, 18 Dec 2025 11:38:13 +0700 Subject: [PATCH] Fix logout: clear sessionStorage redirect flag --- public/dashboard/js/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/dashboard/js/auth.js b/public/dashboard/js/auth.js index b3d6f00..3e9443e 100644 --- a/public/dashboard/js/auth.js +++ b/public/dashboard/js/auth.js @@ -22,6 +22,7 @@ export const Auth = { logout() { localStorage.removeItem(TOKEN_KEY); localStorage.removeItem(USER_KEY); + sessionStorage.removeItem('auth_redirect_done'); window.location.href = '../index.php'; } };