From ec769818f507938de445a0d33687e6a110b5e997 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Sun, 19 Apr 2026 02:19:53 +0530 Subject: [PATCH] refactor: standardize navigation behavior by applying replace: true to authentication and activation flows --- frontend/src/pages/Activate.tsx | 5 ++++- frontend/src/pages/Drawer.tsx | 2 +- frontend/src/pages/Login.tsx | 2 +- frontend/src/pages/Register.tsx | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/Activate.tsx b/frontend/src/pages/Activate.tsx index 507a128..d81d9ae 100644 --- a/frontend/src/pages/Activate.tsx +++ b/frontend/src/pages/Activate.tsx @@ -68,7 +68,10 @@ export default function Activate() { type="button" className="btn btn-primary w-full shadow-lg" onClick={() => - navigate(ROUTES.LOGIN, { state: { firstTime: true } }) + navigate(ROUTES.LOGIN, { + state: { firstTime: true }, + replace: true, + }) } > Start Writing diff --git a/frontend/src/pages/Drawer.tsx b/frontend/src/pages/Drawer.tsx index 521a1a4..5bfbf3d 100644 --- a/frontend/src/pages/Drawer.tsx +++ b/frontend/src/pages/Drawer.tsx @@ -187,7 +187,7 @@ export default function Drawer() {