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.
menu_tree_build() gets the "current path" by checking $_GET['q'] directly. That is wrong for multiple reasons, not the least of which is that it means other modules, such as menu_position, that mess with the menu trail without altering $_GET['q'] then are unsupported.
Patch coming in a moment, but I need an issue ID for it. :-)
Comment | File | Size | Author |
---|---|---|---|
#1 | 1524674-menu_position.patch | 1.01 KB | Crell |
Comments
Comment #1
Crell CreditAttribution: Crell commentedAnd patch.
This may not be the correct solution, since the menu system has a dozen different definitions of "current path", none of which match, but it "works for me"(tm).
Comment #2
Crell CreditAttribution: Crell commentedDuh.
Comment #3
Dave ReidI wonder if this is related to #853462: Use menu_build_tree()
Comment #4
JohnAlbinFixed! Thanks, Larry.
Comment #5
JohnAlbinHere's the commit diff. http://drupalcode.org/project/menu_block.git/commitdiff/fa4afaa