Response: Only apply `showCompact=1` to redirects for GET requests

This commit is contained in:
Johannes Meyer 2021-02-09 15:59:42 +01:00
parent defd8132aa
commit 60d61a8fe7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}