From 734a9101432f55cc4773709f80143a2864314e60 Mon Sep 17 00:00:00 2001 From: rxbn_ Date: Sat, 14 Aug 2021 01:30:25 +0200 Subject: [PATCH] web - fix redirect --- res/web/js/custom.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/res/web/js/custom.js b/res/web/js/custom.js index 6a70640..7bae046 100644 --- a/res/web/js/custom.js +++ b/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");