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.
If you append the page title to the breadcrumb, page title is not refreshed when changing page. Because #cache context only based on user.permissions. Adding #cache context based on url fix this issue. Patch follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | cache_issue_page_title_append_breadcrumb-2722093-2.patch | 522 bytes | flocondetoile |
Comments
Comment #2
flocondetoileThe patch.
Comment #3
xeM8VfDh CreditAttribution: xeM8VfDh commented+1
I'm seeing this issue as well. When I clear the cache and go to "/about/page1", the breadcrumb accurately shows "About / Page One", but then when I go to /about/page2, the breadcrumb remains as "About / Page One" instead of updating to "About / Page Two". After clearing the cache, the first child that I click under a given parent path shows the proper page title in the breadcrumb, but then that title gets stuck and is used when visiting all other pages directly under that parent path. Clearing cache resets it, but it's easily replicable after that.
I'm using a sub-theme of Bootstrap 8.x-3.0-beta3
Comment #4
Michèle CreditAttribution: Michèle commentedPatch #2 works for me like a charm! Thank you!
Comment #6
markhalliwellComment #8
Dhruv Panchal CreditAttribution: Dhruv Panchal commentedHello,
Please use this drupal function to exclude cache : drupal_page_is_cacheable(FALSE);
Thanks,
Dhruv Panchal