loader.js: Allow to force HTTP to be used for JS redirection
This commit is contained in:
parent
966148e8f0
commit
990df95f36
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue