NavigationItem: Provide "#" as default url for items with children
refs #5600
This commit is contained in:
parent
4e948b46bf
commit
975cc92f6b
|
@ -430,6 +430,10 @@ class NavigationItem implements IteratorAggregate
|
|||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
if ($this->url === null && $this->hasChildren()) {
|
||||
return '#';
|
||||
}
|
||||
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue