Skip to content

Commit

Permalink
fixes #6504 (#6559)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 7, 2023
1 parent c94a54c commit 60278f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ export const handleSignOut = (forceReload: boolean) => {
const redirectURL = new URLSearchParams(window.location.search).get(
"redirect"
);
redirectURL ? navigate(`/?redirect=${redirectURL}`) : navigate("/");
if (forceReload) window.location.href = "/";
const url = redirectURL ? `/?redirect=${redirectURL}` : "/";
if (forceReload) {
window.location.href = url;
} else {
navigate(url);
}
};

export const handleRedirection = () => {
Expand Down

0 comments on commit 60278f9

Please sign in to comment.