web - fix redirect
This commit is contained in:
parent
dc0ab91951
commit
734a910143
@ -24,12 +24,8 @@ function login() {
|
||||
|
||||
if(json.message && json.message == "msg.auth.login.successful") {
|
||||
setTimeout(function () {
|
||||
if(
|
||||
window.location.pathname == "/authenticate" &&
|
||||
getParameterByName("appId") &&
|
||||
getParameterByName("redirectUrl")
|
||||
) window.location.reload();
|
||||
else window.location.href = "./";
|
||||
if(window.location.pathname == "/login") window.location.href = "./";
|
||||
else window.location.reload();
|
||||
}, 150);
|
||||
|
||||
box.classList.add("uk-alert-success");
|
||||
|
Loading…
x
Reference in New Issue
Block a user