diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index 182076f92a4..555d3fa8b99 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -322,7 +322,9 @@ protected function prepare() if ($request->isXmlHttpRequest()) { if ($redirectUrl !== null) { if ($request->isGet() && Icinga::app()->getViewRenderer()->view->compact) { - $redirectUrl->getParams()->set('showCompact', true); + if ($redirectUrl->getParam('redirect') !== '__SELF__') { + $redirectUrl->getParams()->set('showCompact', true); + } } $encodedRedirectUrl = rawurlencode($redirectUrl->getAbsoluteUrl());