loader.js: Allow to force HTTP to be used for JS redirection

This commit is contained in:
Johannes Meyer 2018-07-04 11:21:56 +02:00
parent 966148e8f0
commit 990df95f36
1 changed files with 6 additions and 0 deletions

View File

@ -343,6 +343,12 @@
}
}
var useHttp = req.getResponseHeader('X-Icinga-Redirect-Http');
if (useHttp === 'yes') {
window.location.replace(redirect);
return true;
}
this.redirectToUrl(
redirect, req.$target, req.url, req.getResponseHeader('X-Icinga-Rerender-Layout'), req.forceFocus,
req.getResponseHeader('X-Icinga-Refresh')