I have two menu blocks for two separate menus in my left nav. When I setup a context for a content type, both menu blocks appear, when only one should (the one actually to do with the menu trail in question).

Not sure if this falls under context, or perhaps the menu block module?

Comments

rferguson created an issue. See original summary.

jigarius’s picture

Couldn't understand properly. Can you give some more details about whats happening? Maybe include some screenshots or describe in detail what your configurations are, etc?

jigarius’s picture

Status: Active » Postponed (maintainer needs more info)
daniel korte’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new491 bytes

I had this same issue. The issue happens when there are two separate menus each with their own system menu block showing in the same region along with an active trail set up for a menu item existing in one of the menus (but not the other menu). What happens is the Context active trail module does not validate that the active trail it is returning exists in the menu that is requesting the active trail so both system menu blocks actually end up being built out with the menu that the active trail exists in. This is because the SystemMenuBlock build function relies on the parameters that the Context active trail module (incorrectly) alters to build the menu. This patch adds the menu check.

freelock’s picture

Status: Needs review » Reviewed & tested by the community

Ran into the same issue, and confirmed the diagnosis and that the patch works.

  • jigarius committed 0a5b9a9 on 8.x-1.x authored by Daniel Korte
    Issue #2885538 by Daniel Korte: Menu blocks all in inherit active trail
    
jigarius’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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