From b6b87796edd5499ba855891f141765299b523eeb Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 20 Nov 2017 13:55:36 +0100 Subject: [PATCH] Menu: Link to the navigation dashboard if menu entry has children but no URL --- library/Icinga/Web/Navigation/NavigationItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Navigation/NavigationItem.php b/library/Icinga/Web/Navigation/NavigationItem.php index 4a1fbaf04..17360a3f5 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -543,7 +543,7 @@ class NavigationItem implements IteratorAggregate public function getUrl() { if ($this->url === null && $this->hasChildren()) { - $this->setUrl(Url::fromPath('#')); + $this->setUrl(Url::fromPath('navigation/dashboard', array('name' => strtolower($this->getName())))); } return $this->url;