When selecting a link that goes from omega them to seven, the active link is not updated. In this image, I switched to the seven theme by clicking "Administer Blocks", but the active (highlighted) link is still showing the previous omega theme link "Fix Dealer Locations" as the active link.

active links

I've noticed that the highlighted link never changes regardless of the link selected or theme involved.

Comments

sun’s picture

Title: Shortcut Active Link highlighting not woring correctly » Highlighted active trail in Shortcut links is cached

Thanks!

truls1502’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)
Issue tags: +postponed2w

I am sorry for no reply until now.

There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.

We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.

However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.

So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?

Thank you for understanding! :)

Bohus Ulrych’s picture

Hi all,
I'm facing same issue - with latest Drupal 7.59 and admin_menu 7.x-3.0-rc5+23-dev
It is not highlighting active page.
Thanks

Bohus Ulrych’s picture

Hi, maybe this could help to some one
Edits in admin_menu_toolbar.module, in the function admin_menu_toolbar_page_build(&$page)
before attaching javascript, I'm simple always setting up variable
$settings['activeTrail'] = url($_GET['q']);
Then in the admin_menu_toolbar.js in the Drupal.admin.behaviors.toolbarActiveTrail = function (context, settings, $adminMenu) {
I replaced
$adminMenu.find('> div > ul > li > a[href="' + settings.admin_menu.toolbar.activeTrail + '"]').addClass('active-trail');
with

    $adminMenu.find('> div > div > div > div > ul > li > a ').removeClass('active');
    $adminMenu.find('> div > div > div > div > ul > li > a[href="' + settings.admin_menu.toolbar.activeTrail + '"]').addClass('active');

This seems to be working in my case.
Tested with Drupal 7.60 and admin_menu 7.x-3.0-rc5+23-dev

truls1502’s picture

Status: Postponed (maintainer needs more info) » Active
Issue tags: -postponed2w
Chris Matthews’s picture

@Bohus Ulrych, can you create a patch on 7.x-3.x-dev based on your comment's in #4 so that we can review and test?