mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 12:50:29 +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) {
|
export function redirectToLoginPage(application, history) {
|
||||||
const loginLink = getLoginLink(application);
|
const loginLink = getLoginLink(application);
|
||||||
if (loginLink.indexOf("http") === 0 || loginLink.indexOf("https") === 0) {
|
if (loginLink.indexOf("http") === 0 || loginLink.indexOf("https") === 0) {
|
||||||
openLink(loginLink);
|
window.location.replace(loginLink);
|
||||||
}
|
}
|
||||||
history.push(loginLink);
|
history.push(loginLink);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user