diff --git a/src/pages/ForgotPassword.tsx b/src/pages/ForgotPassword.tsx index c1a3796..ec5669d 100644 --- a/src/pages/ForgotPassword.tsx +++ b/src/pages/ForgotPassword.tsx @@ -185,7 +185,7 @@ const ForgotPassword: React.FC = () => { cursor: "pointer", // Added a pointer cursor to indicate it's clickable }} onClick={() => { - window.open(redirectUrl); + window.open(redirectUrl, '_self'); }} > Back to login diff --git a/src/pages/ResetPassword.tsx b/src/pages/ResetPassword.tsx index 65e59d1..15415b0 100644 --- a/src/pages/ResetPassword.tsx +++ b/src/pages/ResetPassword.tsx @@ -63,7 +63,7 @@ const ResetPassword: React.FC = () => { }; const handlePrimaryButton = () => { - window.open(redirectUrl); + window.open(redirectUrl, "_self"); }; return ( @@ -143,7 +143,7 @@ const ResetPassword: React.FC = () => { fontWeight: "500", }} onClick={() => { - window.open(redirectUrl); + window.open(redirectUrl, "_self"); }} > Back to login