Browse Source

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

3.1.x 3.1.3
gpotter 3 years ago committed by Chi
parent
commit
772ad0323d
  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;
}

Loading…
Cancel
Save