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

davy-r’s picture

Version: 7.x-2.0 » 7.x-3.x-dev
Issue summary: View changes
davy-r’s picture

This should now be fixed in 7.x-3.x-dev

davy-r’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.