You should read this thread and see what people is talking about your module to improve it! :)
#1564388: "My account" link is never in the active trail
My issue is that the profile link (path: /user) is never marked as active-trail.
I just had to make a workaround with this:
<?php
global $user;
if(!empty($vars['user'])) {
if ($_SERVER['REQUEST_URI'] == '/site/user') {
menu_set_active_item('user');
}
if (drupal_match_path(current_path(),"user") ||
drupal_match_path(current_path(),"user/".$user->uid)){
menu_set_active_item('user');
}
}
?>
plus
jQuery('#block-system-user-menu ul li a.active').addClass('active-trail');
jQuery('#block-system-user-menu ul li a.active').parent().addClass('active-trail');
Comments
Comment #1
davy-r commentedComment #2
davy-r commentedThis should now be fixed in 7.x-3.x-dev
Comment #3
davy-r commented