Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have a node which is added to the menu via a menu position rule, then the active trail ends in the parent menu where the node is being positioned under. The active trail should end in the node instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | menu_position-add_current_node_to_active_trail-2570195-1.patch | 572 bytes | Sneakyvv |
Comments
Comment #2
Sneakyvv CreditAttribution: Sneakyvv commentedThe problem also occurs in latest dev version. Attached patch applies to both 7.x-1.1 and 7.x-2x-dev.
In menu_position_activate_rule the preferred link is already stored. Line 326-328:
But it is not being added anywhere. It should be added to the active trail after the rule's menu link is popped off. That is what the patch does.