Compare commits

..

1 Commits

Author SHA1 Message Date
a71a190db5 feat: fix bug in redirectToLoginPage() (#1422) 2022-12-24 01:10:02 +08:00

View File

@ -800,7 +800,7 @@ export function renderLoginLink(application, text) {
export function redirectToLoginPage(application, history) {
const loginLink = getLoginLink(application);
if (loginLink.indexOf("http") === 0 || loginLink.indexOf("https") === 0) {
openLink(loginLink);
window.location.replace(loginLink);
}
history.push(loginLink);
}