1
0
Fork 0

web - fix redirect

master
Ruben Meyer 1 year ago
parent dc0ab91951
commit 734a910143
Signed by: rxbn_
GPG Key ID: BE3BF898BE352FE2
  1. 8
      res/web/js/custom.js

@ -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…
Cancel
Save