mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: fix bug in redirectToLoginPage() (#1422)
This commit is contained in:
parent
da69d94445
commit
a71a190db5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user