mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +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();
|
$redirectUrl = $this->getRedirectUrl();
|
||||||
if ($this->getRequest()->isXmlHttpRequest()) {
|
if ($this->getRequest()->isXmlHttpRequest()) {
|
||||||
if ($redirectUrl !== null) {
|
if ($redirectUrl !== null) {
|
||||||
if (Icinga::app()->getViewRenderer()->view->compact) {
|
if ($this->getRequest()->isGet() && Icinga::app()->getViewRenderer()->view->compact) {
|
||||||
$redirectUrl->getParams()->set('showCompact', true);
|
$redirectUrl->getParams()->set('showCompact', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user