From 4d57d0a5f3f1f278c6435bd26c727ae2be951d33 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Fri, 16 May 2025 23:41:22 +0800 Subject: [PATCH] ```update Change logout behavior from route navigation to full page reload after sign-out ``` --- 002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx index e14dda0..71cd65c 100644 --- a/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx +++ b/002_source/ionic_mobile/src/pages/auth/StudentInfo/index.tsx @@ -58,7 +58,8 @@ function StudentInfo(): React.JSX.Element { async function handleLogoutOnClick() { try { await authClient.signOut(); - router.push(Paths.AuthLogin); + // router.push(Paths.AuthLogin); + window.location.reload(); } catch (error) { console.error(error); }