ActionController: Don't override reload rules in redirectXhr()

`postDispatchXhr()` also only overrides them if enabled.
This commit is contained in:
Johannes Meyer 2022-05-11 14:18:09 +02:00
parent 67285ce262
commit 0b9eecbabc

View File

@ -404,10 +404,17 @@ class ActionController extends Zend_Controller_Action
protected function redirectXhr($url) protected function redirectXhr($url)
{ {
$this->getResponse() $response = $this->getResponse();
->setReloadCss($this->reloadCss)
->setRerenderLayout($this->rerenderLayout) if ($this->reloadCss) {
->redirectAndExit($url); $response->setReloadCss(true);
}
if ($this->rerenderLayout) {
$response->setRerenderLayout(true);
}
$response->redirectAndExit($url);
} }
protected function redirectHttp($url) protected function redirectHttp($url)