Skip to content

Commit

Permalink
FIx menu links active trail data producer (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen authored Apr 30, 2024
1 parent 8864fc9 commit e96ca4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function __construct(array $configuration, $pluginId, $pluginDefinition,
public function resolve(MenuInterface $menu, ?Url $url): array {
$parameters = new MenuTreeParameters();

if ($url) {
if ($url && $url->isRouted()) {
$links = $this->menuLinkManager->loadLinksByRoute($url->getRouteName(), $url->getRouteParameters(), $menu->id());

$activeLink = reset($links);
Expand Down

0 comments on commit e96ca4d

Please sign in to comment.