diff --git a/src/CoreBundle/EventListener/BackendNavigationListener.php b/src/CoreBundle/EventListener/BackendNavigationListener.php index c944d57cc..7da96966c 100644 --- a/src/CoreBundle/EventListener/BackendNavigationListener.php +++ b/src/CoreBundle/EventListener/BackendNavigationListener.php @@ -354,6 +354,12 @@ private function getSectionNode( // Search the position in the already existing menu by starting at offset in BE_MOD and walking up to the start. $start = (int) array_search($backendSection, $navigation, true); + + // Special location for node zero. + if (0 === $start) { + array_splice($namesInMenu, 0, 0, [$backendSection]); + } + while (0 <= --$start) { /** @psalm-suppress InvalidArrayOffset */ if (in_array($navigation[$start], $namesInMenu, true)) {