Breadcrumbs enhancement

Created on 12 March 2025, about 2 months ago

Problem/Motivation

Currently, the breadcrumbs data producer in the graphql_compose_routes module relies on BreadcrumbManager::build($routeMatch), which generates breadcrumbs based on menu structures. However, if a node does not have a menu item, the breadcrumb will be empty.

In my use case I use structured path aliases for some of my nodes instead of a menu to define my content hierarchy.
And a page without a menu structure should still have a breadcrumb like homepage | current node.

Proposed resolution

  • Breadcrumbs should follow the menu structure or the alias structure
  • If no menu or alias is set, it should default to Home | current node
📌 Task
Status

Needs review

Version

2.3

Component

Code

Created by

🇧🇪Belgium britt.vanderlinden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024