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