mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user