Menu: Link to the navigation dashboard if menu entry has children but no URL

This commit is contained in:
Eric Lippmann 2017-11-20 13:55:36 +01:00
parent a83a9cef03
commit b6b87796ed
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ class NavigationItem implements IteratorAggregate
public function getUrl() public function getUrl()
{ {
if ($this->url === null && $this->hasChildren()) { if ($this->url === null && $this->hasChildren()) {
$this->setUrl(Url::fromPath('#')); $this->setUrl(Url::fromPath('navigation/dashboard', array('name' => strtolower($this->getName()))));
} }
return $this->url; return $this->url;