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.
Problem/Motivation
When we use page_manager for override taxonomy term canonical page we have a bug with breadcrumbs.
For example we have term with name "Zero"
If we don't use page manager we have breadcrumbs "Home > Zero"
If we use page manager we have breadcrumbs "Home > Term view"
Seems this affected by https://www.drupal.org/node/2665328 and https://www.drupal.org/node/2820218
Proposed resolution
I propose add hack to module for term, until the time until page manager fixed the problem.
Comment | File | Size | Author |
---|---|---|---|
#7 | page_manager_broke_title_callback_for_term-2923002-7.patch | 4 KB | r.nabiullin |
#4 | page_manager_broke_title_callback_for_term-2923002-4.patch | 4.83 KB | r.nabiullin |
#4 | interdiff-2923002.txt | 1.01 KB | r.nabiullin |
Comments
Comment #2
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedComment #3
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedIt is temporary solution.
Comment #4
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedComment #5
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedComment #6
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedComment #7
r.nabiullin CreditAttribution: r.nabiullin as a volunteer and at Skilld commentedIssue still present. Rerolled patch for 1.6 version
Comment #8
Revathi.B CreditAttribution: Revathi.B at UniMity Solutions Pvt Limited commentedHere It was take your page manager title as breadcrumb. For example your page manager title as taxonomy page and the breadcrumb to be home --> taxonomy page.
easy Breadcrumb only work for when the alias is generated in alias table. Otherwise it wont work. Even the views page breadcrumb also not working.
Comment #9
Greg BoggsI believe this a bug in page manager that's getting resolved in core. Feel free to use this patch until Page Manager is fixed!
Comment #10
Greg BoggsComment #11
Agogo CreditAttribution: Agogo commentedJust wanted to add that this patch is not working any more. The "hack" still does, though. It also works for nodes, for those that have issues also with Panel Pages for nodes. Might be useful for people.
I will not submit a patch since it will probably just stop working. Might be worth makin a local patch for your own project though so changes wont get lost when updating.
Find the file: src > EasyBreadcrumbBuilder.php
Find the function: getTitleString
Find the code:
$title = $this->titleResolver->getTitle($route_request, $route_match->getRouteObject());
Replace it with: