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
Command icon 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

tsega created an issue. See original summary.

loopduplicate’s picture

Category: Bug report » Feature request
inregards2pluto’s picture

Just 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.