Skip to content

Commit

Permalink
feat: fix bug in redirectToLoginPage() (casdoor#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanxiao authored Dec 23, 2022
1 parent da69d94 commit a71a190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/Setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a71a190

Please sign in to comment.