mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Response: Only apply showCompact=1
to redirects for GET requests
This commit is contained in:
parent
defd8132aa
commit
60d61a8fe7
@ -287,7 +287,7 @@ class Response extends Zend_Controller_Response_Http
|
||||
$redirectUrl = $this->getRedirectUrl();
|
||||
if ($this->getRequest()->isXmlHttpRequest()) {
|
||||
if ($redirectUrl !== null) {
|
||||
if (Icinga::app()->getViewRenderer()->view->compact) {
|
||||
if ($this->getRequest()->isGet() && Icinga::app()->getViewRenderer()->view->compact) {
|
||||
$redirectUrl->getParams()->set('showCompact', true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user