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…
Reference in New Issue