diff --git a/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php b/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php index b490ac19bc2..00ed144add6 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php +++ b/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php @@ -120,14 +120,14 @@ protected function canAddRoute(Route $route): bool protected function canGroupRoute(Route $route): bool { - if (! $this->usesGroups) { - return false; - } - if (! $this->generatesSidebar) { return $route->getPage()->navigationMenuGroup() !== null; } + if (! $this->usesGroups) { + return false; + } + return true; }