From 39870763c3e695a74db5edeee894fc64ef7800ff Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Mon, 26 Aug 2024 14:48:30 +0200 Subject: [PATCH] feat(SW-307): Updated logout navigation --- components/Forms/Edit/Profile/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Forms/Edit/Profile/index.tsx b/components/Forms/Edit/Profile/index.tsx index 317fa2066..6a4593d74 100644 --- a/components/Forms/Edit/Profile/index.tsx +++ b/components/Forms/Edit/Profile/index.tsx @@ -90,7 +90,8 @@ export default function Form({ user }: EditFormProps) { toast.success(response.message) utils.user.get.invalidate() if (isPasswordChanged) { - router.push(logout[lang]) + // Kept logout out of Next router forcing browser to navigate on logout url + window.location.href = logout[lang] } else { router.push(profile[lang]) }