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.
It was fixed before in #2239833: Regression: Menu contextual links no longer visible in menu blocks, but it regressed again, despite having test coverage. Somehow it only regressed when blocks are cached.
Please credit olli, who did all the work, I only did a reroll and then moved it into this issue rather than reopening the original issue.
(See #14 and later in #2239833: Regression: Menu contextual links no longer visible in menu blocks.)
Comment | File | Size | Author |
---|---|---|---|
#1 | 2379083-1.patch | 2.05 KB | Wim Leers |
Comments
Comment #1
Wim LeersComment #2
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed a1a08fe and pushed to 8.0.x. Thanks!
Comment #4
yoroy CreditAttribution: yoroy commentedI don't see any other link besides 'Configure block' on my menu block. Caching on or off doesn't seem to matter.
Comment #5
Wim LeersJust to make sure: please clear your caches, try in incognito mode, or try in a different browser. This could be a browser caching problem.
Comment #6
yoroy CreditAttribution: yoroy commentedChecked in another browser, situation is as described in #4.
Edit: I do see the 'edit menu' link for the core 'Tools' block, but not for my own, newly created menu.
Comment #7
olli CreditAttribution: olli commented@yoroy you are right.
That menu_list_system_menus() returns only system-defined (default) menus.
Could you open a new issue?
Comment #8
yoroy CreditAttribution: yoroy commentedSure: #2389753: Add contextual links to menu blocks directly instead using a hook_block_view_alter
Comment #9
yoroy CreditAttribution: yoroy commentedBack to fixed for this one then.