feat: fix bug in redirectToLoginPage() (#1422)

This commit is contained in:
Chell 2022-12-23 18:10:02 +01:00 committed by GitHub
parent da69d94445
commit a71a190db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}