Controller: Properly handle view compact requests

This commit is contained in:
Johannes Meyer 2022-03-16 12:46:57 +01:00
parent 554b96cebe
commit 85b8f770ab

View file

@ -50,7 +50,6 @@ class Controller extends ModuleController
= $this->showFullscreen = $this->showFullscreen
= (bool) $this->_helper->layout()->showFullscreen; = (bool) $this->_helper->layout()->showFullscreen;
$this->view->compact = $this->params->get('view') === 'compact';
$this->setViewScript('default'); $this->setViewScript('default');
} }
@ -62,7 +61,7 @@ class Controller extends ModuleController
if ($this->url === null) { if ($this->url === null) {
$this->url = Url::fromPath( $this->url = Url::fromPath(
$this->getRequest()->getUrl()->getPath() $this->getRequest()->getUrl()->getPath()
)->setParams($this->params); )->setParams($this->getRequest()->getUrl()->getParams());
} }
return $this->url; return $this->url;