Browse Source

Issue #3222666 by gpotter, theRuslan: drupal_menu() incorrectly caches the active parent menu item in two-leveled menu

merge-requests/14/head
gpotter 3 years ago committed by Chi
parent
commit
fd7ee18be2
  1. 2
      src/View/MenuViewBuilder.php

2
src/View/MenuViewBuilder.php

@ -76,6 +76,8 @@ class MenuViewBuilder {
]; ];
} }
$build['#cache']['contexts'][] = 'route.menu_active_trails:' . $menu_name;
return $build; return $build;
} }

Loading…
Cancel
Save