Skip to content

Commit

Permalink
NCL- 8833 Fix redirect problem when user not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
DnsZhou committed Nov 18, 2024
1 parent 39f702c commit 98e589a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLegacyUrlRedirector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useLegacyUrlRedirector = () => {
}

uiLogger.log(`Redirecting to new URL: ${newPath}`, undefined, { oldUrl, newUrl: newPath });
window.history.replaceState({}, '', URL_BASE_PATH + newPath);
window.location.href = URL_BASE_PATH + newPath;
}
}, []);
};

0 comments on commit 98e589a

Please sign in to comment.