Response: Only preserve `showCompact` for explicit redirects
In case of a `__SELF__` redirect, the client should still have the parameter in the location and its preserved this way then.
This commit is contained in:
parent
30b540952a
commit
a2c143d75e
|
@ -322,7 +322,9 @@ class Response extends Zend_Controller_Response_Http
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue