From 60d61a8fe70e7e9df2d4334b3c3639eafdb64c80 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 9 Feb 2021 15:59:42 +0100 Subject: [PATCH] Response: Only apply `showCompact=1` to redirects for GET requests --- library/Icinga/Web/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index d0784ce03..55d3433a2 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -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); }