mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
feat: fix bug in redirectToLoginPage() (#1422)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user