Problem
When previewing nodes the generated breadcrumb includes the UUID of the node instead of the URL alias. For example if the preview page URL is node/preview/b1t4cc36-f4bb-44e8-aa78-ba3426452f08/full, then the generated breadcrumb would be Home / Preview / b1t4cc36-f4bb-44e8-aa78-ba3426452f08 / Node Title
Solution
- For new nodes: simply default to
Home / New Node Title - For existing nodes:
Home / URL Alias Path / Node Title
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | easy_breadcrumb-preview-route-bug-3543506-6.patch | 5.9 KB | inregards2pluto |
Issue fork easy_breadcrumb-3543506
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
loopduplicate commentedComment #6
inregards2plutoJust tested this MR on a Drupal 11.2.8 site and can confirm it fixes the breadcrumb issue. Prior to patch, breadcrumbs were rendering as "Home >> >>" on preview routes. Post patch application, breadcrumbs are correctly resolved on preview routes. I'm attaching the patch for the MR here for folks who need it until the MR is merged in.