mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Merge pull request #4300 from Icinga/preserve-show-compact-during-redirects
Automatically preserve showCompact parameter when redirecting
This commit is contained in:
commit
36003df087
@ -287,6 +287,10 @@ class Response extends Zend_Controller_Response_Http
|
||||
$redirectUrl = $this->getRedirectUrl();
|
||||
if ($this->getRequest()->isXmlHttpRequest()) {
|
||||
if ($redirectUrl !== null) {
|
||||
if (Icinga::app()->getViewRenderer()->view->compact) {
|
||||
$redirectUrl->getParams()->set('showCompact', true);
|
||||
}
|
||||
|
||||
$this->setHeader('X-Icinga-Redirect', rawurlencode($redirectUrl->getAbsoluteUrl()), true);
|
||||
if ($this->getRerenderLayout()) {
|
||||
$this->setHeader('X-Icinga-Rerender-Layout', 'yes', true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user