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") {
|
if(json.message && json.message == "msg.auth.login.successful") {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if(
|
if(window.location.pathname == "/login") window.location.href = "./";
|
||||||
window.location.pathname == "/authenticate" &&
|
else window.location.reload();
|
||||||
getParameterByName("appId") &&
|
|
||||||
getParameterByName("redirectUrl")
|
|
||||||
) window.location.reload();
|
|
||||||
else window.location.href = "./";
|
|
||||||
}, 150);
|
}, 150);
|
||||||
|
|
||||||
box.classList.add("uk-alert-success");
|
box.classList.add("uk-alert-success");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user