From 0feaec7af136b1f42ed57587e50f47d86018db2a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 13:20:17 +0200 Subject: [PATCH] NavigationItem: Return a instance of Url in method getUrl(), really refs #5600 --- 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 bb20db9e0..4a99fa295 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -446,7 +446,7 @@ class NavigationItem implements IteratorAggregate public function getUrl() { if ($this->url === null && $this->hasChildren()) { - return '#'; + $this->setUrl(Url::fromPath('#')); } return $this->url;