1
0
Fork 0

web - fix redirect

This commit is contained in:
Ruben Meyer 2021-08-14 01:30:25 +02:00
parent dc0ab91951
commit 734a910143
Signed by: rxbn_
GPG Key ID: BE3BF898BE352FE2
1 changed files with 2 additions and 6 deletions

View File

@ -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");