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.
There are several instances of losing breadcrumbs in core. One that just stuck out to me was on the URL alias edit form. The local 'action' Add URL alias has nice breadcrumbs, but the 'Edit' callback does not. This is a *major* WTF for our users.
Comment | File | Size | Author |
---|---|---|---|
#6 | 692868_breadcrumbs.patch | 719 bytes | mcarbone |
screenshot_040.png | 52.72 KB | Dave Reid | |
screenshot_039.png | 62.08 KB | Dave Reid | |
screenshot_038.png | 41.31 KB | Dave Reid |
Comments
Comment #1
Dave ReidAlso note how the tabs disappeared on the second/callback screenshot.
Comment #2
mcarbone CreditAttribution: mcarbone commentedHuh, I'm not getting the tabs either way on a fresh install, but I can confirm the breadcrumb problem. Also, I don't see in the menu code where the "Patterns" and "Settings" tabs come from -- what path do they go to for you?
Comment #3
Dave ReidIt's an experimental version of pathauto for D7 I'm working on. I'll try and find an example of just core code that this happens on with tabs disappearing.
Comment #4
mcarbone CreditAttribution: mcarbone commentedThe tab thing I think you might want to put in a separate issue anyway. The breadcrumb problem I'm pretty sure is unrelated, and it is very widespread (when editing vocabs, terms, menu items, etc.).
It's looking like it's happening because when menu_set_active_trail queries the menu_links table, it's searching that table for the menu being used using the full qualified path, e.g., "admin/config/search/path/edit/1", which of course is not going to return a result from that table. This is probably an issue for a menu guru, but I'm still digging for the fun of it.
Comment #5
Dave ReidGah, found the original issue at #576290: Breadcrumbs don't work for dynamic paths & local tasks
Comment #6
mcarbone CreditAttribution: mcarbone commentedThis simple fix seems to resolve the breadcrumb problem and a manual test looks good. Let's see how the testing bot does.
Comment #7
mcarbone CreditAttribution: mcarbone commentedAh. Heh.