MenuBasedBreadcrumbBuilder::addMissingCurrentPage() constructs an incomplete request

Created on 21 October 2022, over 2 years ago
Updated 28 March 2024, about 1 year ago

Problem/Motivation

The request passed to $this->titleResolver->getTitle() does not have enough attributes to cover some cases.
For example, if the _title_callback is EntityController::title(), it will not work is the request does not have an _entity attribute.

Steps to reproduce

  1. Create a custom entity type which route uses EntityController::title() as _title_callback.
  2. Add a menu based breadcrumb on this page.
  3. The breadcrumb does not contain the current page.

Proposed resolution

The request should have the same attributes as the current request.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024