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.
Hi,
i'm displaying block_menu in a side region as a second navigation. There is a link to "/user" on one trail, but when i click on user, the userpages opens, but the block_menu disappears.
Comments
Comment #1
ericclaeren CreditAttribution: ericclaeren commentedI'm experiencing the same problem, when using the user menu, the path /user is not set active, therefore the menu block won't show.
Comment #2
jnettikSame problem. I have a My Account link at /user. Then several account related pages at /user/page-name. Menu block doesn't show the sub pages on the /user page.
Comment #3
codecouleurs CreditAttribution: codecouleurs commentedHi,
I have this problem too and after searching in Menu block's code I find the cause (but not the solution yet) : there is no "in_active_trail" value in the user account link table.
In the function menu_tree_prune_tree() (menu_block.module) there is a condition : if ($tree[$key]['link']['in_active_trail']) line 560
That means Menu block module don't know on which page we are so it can't display the proper menu.
I don't know if the problem comes from Menu block module or from the menu system. I use Nice Menus so I keep digging in that direction.
[edit] I find that : "My account" link is never in the active trail
So I remove
'menu_name' => 'navigation
in modules/user/user.module line 1731 and now the menu block is displayed. But I don't know the other consequences on Drupal behavior... so this is not really a solution.Comment #4
JohnAlbinYep. Looks like that is a core bug. :-( #1564388: "My account" link is never in the active trail