When a menu item's child links to the same node, depth breaks on the Menu Trail Condition and the parent menu item does not display.

See attached images.

Primary Links Menu Structure:

-- Pharmaceutical Studies
-- Overview
-- Case Studies
-- Pharma Experts
-- Research & Development
-- Overview
-- Research Team
-- Partners

http://drupal.org/files/primary-links.png

In both cases, "Overview" menu item links to the same node as its parent. This appears to cause the parent item from not displaying and the depth to be flat in Context UI's Condition Menu Trail listing.

http://drupal.org/files/context-menu-trail.png

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dustin Currie’s picture

FileSize
75.33 KB

Oh, haha, another bug. When attaching files, the fielset gives http://drupal.org/files/[file-name] as the path when it should be
http://drupal.org/files/issues/[file-name]. Please ignore the links within the body of the text. They won't work.

eusebius’s picture

+1 Same problem

Steven Jones’s picture

Issue tags: +context-2.x-rc-blocker

Need to reproduce, and possibly write a simpletest?

Steven Jones’s picture

Version: 6.x-2.0-beta7 » 6.x-3.0-beta4
Issue tags: -context-2.x-rc-blocker

So, the menu trail conditions and reactions don't really fire off of the menu items at all, but rather the paths of the menu items.

I'm going to say that this is a pain, but its not going to be fixed for 2.x, mostly because it might well break quite a few things.

However, yhahn, looking at the code for the menu stuff in context 3 it would seem that the same code lives there too, rather than actually choosing menu trail items, you're just selecting from the items, whose href then gets stored for comparison in the trail later. I know that this is what is probably needed, but it also produces errors such as this issue.

Steven Jones’s picture

Looks like there might be some related code over here: #274577: Context doesn't expand menu's item of primary links block

yhahn’s picture

Version: 6.x-3.0-beta4 » 6.x-3.x-dev
Assigned: Unassigned » yhahn
Priority: Normal » Critical

Will think about this... might not be able to fix.

yhahn’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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