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

ericclaeren’s picture

I'm experiencing the same problem, when using the user menu, the path /user is not set active, therefore the menu block won't show.

jnettik’s picture

Same 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.

codecouleurs’s picture

Hi,

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.

JohnAlbin’s picture

Status: Active » Closed (duplicate)

Yep. Looks like that is a core bug. :-( #1564388: "My account" link is never in the active trail