Problem/Motivation

Bootstrap breadcrumbs lack of cache context, that lead to issue when user get "access denied" in last title, but access to node itself do not denied. After cache clear 'access denied' is gone. Got the issue on lightly customized drupal 8.9.19 with bootstrap theme 3.21

Steps to reproduce

1) Create new node with any content type, but do not publish it.
2) Look at the node as anonymous user from another browser.
3) Publish node
4) Do step 2 and see what you get access denied in last breadcrumb title.

Proposed resolution

Add more cache context tags.
Here a patch that work for me.

CommentFileSizeAuthor
bootstrap_breadcrumb.patch477 bytessh0dn

Comments

sh0dn created an issue. See original summary.

xamount’s picture

Title: Breadcrumbs cache issue. » Breadcrumbs title cache issue - Breadcrumb title stuck on "Access Denied"
Version: 8.x-3.21 » 8.x-3.x-dev
Status: Active » Reviewed & tested by the community

Thanks @sh0dn!

I have tested this patch and it works. I was getting this issue with bootstrap theme 3.23. After applying this patch, the issue is gone.

shelane’s picture

Assigned: Unassigned » shelane

  • shelane committed 1950006 on 8.x-3.x authored by sh0dn
    Issue #3240459 by sh0dn, xamount: Breadcrumbs title cache issue -...

  • shelane committed 5c7e042 on 8.x-4.x authored by sh0dn
    Issue #3240459 by sh0dn, xamount: Breadcrumbs title cache issue -...
shelane’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.