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]) }