diff --git a/application/controllers/LayoutController.php b/application/controllers/LayoutController.php index 7d2ea9ae5..614fa02a7 100644 --- a/application/controllers/LayoutController.php +++ b/application/controllers/LayoutController.php @@ -21,8 +21,9 @@ class LayoutController extends ActionController $this->setAutorefreshInterval(15); $this->_helper->layout()->disableLayout(); - $url = Url::fromPath($this->getParam('url')); - $this->view->menuRenderer = new MenuRenderer(Menu::load(), $url->getRelativeUrl()); + $url = Url::fromRequest(); + $menu = new MenuRenderer(Menu::load(), $url->getRelativeUrl()); + $this->view->menuRenderer = $menu->useCustomRenderers(); } /** diff --git a/application/layouts/scripts/parts/navigation.phtml b/application/layouts/scripts/parts/navigation.phtml index 5de8f3e40..f940be034 100644 --- a/application/layouts/scripts/parts/navigation.phtml +++ b/application/layouts/scripts/parts/navigation.phtml @@ -9,14 +9,11 @@ use Icinga\Web\Widget\SearchDashboard; if (! $this->auth()->isAuthenticated()) { return; } -$dataIcingaUrl = $this->href( - 'layout/menu', - array('url' => Url::fromRequest()->without('renderLayout')->getAbsoluteUrl()) -); ?>