web - proxy subdirectory fix
This commit is contained in:
parent
a3e626a274
commit
73df853124
@ -25,8 +25,12 @@ 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(window.location.pathname == "/authenticate" && getParameterByName("appId")) window.location.href= "/authenticate";
|
if(
|
||||||
else window.location.href= "/";
|
window.location.pathname == "/authenticate" &&
|
||||||
|
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");
|
||||||
@ -45,7 +49,7 @@ function logout() {
|
|||||||
ajax.send("");
|
ajax.send("");
|
||||||
ajax.onload = () => {
|
ajax.onload = () => {
|
||||||
let json = JSON.parse(ajax.responseText);
|
let json = JSON.parse(ajax.responseText);
|
||||||
if(json.message && json.message == "msg.auth.logout.successful") window.location.href= "/";
|
if(json.message && json.message == "msg.auth.logout.successful") window.location.href = "./";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@ -61,7 +65,7 @@ function cancelRequest() {
|
|||||||
ajax.send("");
|
ajax.send("");
|
||||||
ajax.onload = () => {
|
ajax.onload = () => {
|
||||||
let json = JSON.parse(ajax.responseText);
|
let json = JSON.parse(ajax.responseText);
|
||||||
if(json.message && json.message == "msg.request.operation.cancel.successful") window.location.href= "/";
|
if(json.message && json.message == "msg.request.operation.cancel.successful") window.location.href = "./";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user