fix: should keep the #

This commit is contained in:
Candinya 2021-04-14 17:43:18 +08:00
parent 763e6a48e9
commit 0ead37d7b7
No known key found for this signature in database
GPG Key ID: 8B1BE5E86F2E66AE

View File

@ -92,7 +92,7 @@ const LoginPage = ({ theme }) => {
console.log("SSO token is", retToken[1]);
localStorage.setItem("sso_ret_token", retToken[1]);
console.log("SSO token saved. Reloading the page to prevent loging again.");
window.location.href = window.location.href.replace(retToken[0], ""); // prevent further requests
window.location.href = window.location.href.replace(retToken[0], "#"); // prevent further requests
} else if (ssoToken) {
const baseUrl = localStorage.getItem("sso_base_url");
localStorage.removeItem("sso_base_url");