NavigationItem: Provide "#" as default url for items with children

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-04 09:31:23 +02:00
parent 4e948b46bf
commit 975cc92f6b
1 changed files with 4 additions and 0 deletions

View File

@ -430,6 +430,10 @@ class NavigationItem implements IteratorAggregate
*/
public function getUrl()
{
if ($this->url === null && $this->hasChildren()) {
return '#';
}
return $this->url;
}