diff --git a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php index 00a42d407..e942e7078 100644 --- a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php +++ b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php @@ -160,6 +160,10 @@ class NavigationItemRenderer $label = $this->view()->icon($icon) . $label; } + if (! $item->getAttribute('id')) { + $item->setAttribute('id', $item->getUniqueName()); + } + if (($url = $item->getUrl()) !== null) { $content = sprintf( '%s',