Skip to content

Commit

Permalink
Issue #PS-0000 fix: Replace current page when redirecting
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Nov 9, 2024
1 parent c2cafee commit fbbdb85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/pages/ResetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ResetPassword: React.FC = () => {
};

const handlePrimaryButton = () => {
window.open(redirectUrl);
window.open(redirectUrl, "_self");
};

return (
Expand Down Expand Up @@ -143,7 +143,7 @@ const ResetPassword: React.FC = () => {
fontWeight: "500",
}}
onClick={() => {
window.open(redirectUrl);
window.open(redirectUrl, "_self");
}}
>
Back to login
Expand Down

0 comments on commit fbbdb85

Please sign in to comment.