Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a localized menu item which points back to the same Views view, but in one language the menu becomes unactive and so the menu block is not shown.
Problem is in menu_block.module, lines 268-269:
// Get the tree pruned for just the active trail.
$tree = menu_tree_page_data($config['menu_name']);
problem gets fixed with this:
$tree = menu_tree_page_data($config['menu_name'], NULL, TRUE);
which if I understand the comment correctly is the intention: menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE)
Comment | File | Size | Author |
---|---|---|---|
#1 | menu_block-item-localization-1470280-1.patch | 588 bytes | fluffy |
Comments
Comment #1
fluffy CreditAttribution: fluffy commentedPatch
Comment #2
GiorgosKpossibly related #1461254: Take care of the menu item language when buiding menu block
Comment #3
fluffy CreditAttribution: fluffy commentedyes the #1461254: Take care of the menu item language when buiding menu block is the same bug, my patch does not fix all of it like in http://drupal.org/files/menu-block-language-1461254-4.patch
Comment #4
wiliam_steven CreditAttribution: wiliam_steven commentedyes, it cannot working too. I have looking for the solution for this, but anything can't work.
Comment #5
JohnAlbinNope. $only_active_trail doesn't return a menu tree; it returns a breadcrumb list.
Sounds like this is a dupe of the other i18n issues.