From 062fae41b80e0282bc5a5de74fac2d590c0fc8a9 Mon Sep 17 00:00:00 2001 From: Roger Batista Date: Thu, 2 Jan 2025 13:30:29 +0100 Subject: [PATCH 1/3] portal/brand: Fixed navigation syntax --- web/portal/brand/src/components/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/portal/brand/src/components/Login.tsx b/web/portal/brand/src/components/Login.tsx index 857a3f05b31..9a270d929c4 100644 --- a/web/portal/brand/src/components/Login.tsx +++ b/web/portal/brand/src/components/Login.tsx @@ -48,7 +48,7 @@ export default function Login(props: LoginProps): JSX.Element | null { return; } - navigate(`${location.pathname}/`, { + navigate(`${location.pathname}`, { replace: true, preventScrollReset: true, }); From da49bb96de16a7cf1204a5376f1fb928732004c0 Mon Sep 17 00:00:00 2001 From: Roger Batista Date: Thu, 2 Jan 2025 13:30:42 +0100 Subject: [PATCH 2/3] portal/client: Fixed navigation syntax --- web/portal/client/src/components/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/portal/client/src/components/Login.tsx b/web/portal/client/src/components/Login.tsx index 26df3380312..dd6d5264cfe 100644 --- a/web/portal/client/src/components/Login.tsx +++ b/web/portal/client/src/components/Login.tsx @@ -49,7 +49,7 @@ export default function Login(props: LoginProps): JSX.Element | null { return; } - navigate(`${location.pathname}/`, { + navigate(`${location.pathname}`, { replace: true, preventScrollReset: true, }); From 862a64e904aa652206ea4ba8d47641b7ed073276 Mon Sep 17 00:00:00 2001 From: Roger Batista Date: Thu, 2 Jan 2025 13:30:58 +0100 Subject: [PATCH 3/3] portal/user: Fixed navigation syntax --- web/portal/user/src/components/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/portal/user/src/components/Login.tsx b/web/portal/user/src/components/Login.tsx index 91fc0352a48..10c75a6ede7 100644 --- a/web/portal/user/src/components/Login.tsx +++ b/web/portal/user/src/components/Login.tsx @@ -32,7 +32,7 @@ export default function Login(props: LoginProps): JSX.Element | null { return; } - navigate(`${location.pathname}/`, { + navigate(`${location.pathname}`, { replace: true, preventScrollReset: true, });