mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
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…
x
Reference in New Issue
Block a user