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.
| Comment | File | Size | Author |
|---|---|---|---|
| bootstrap_breadcrumb.patch | 477 bytes | sh0dn |
Comments
Comment #2
xamountThanks @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.
Comment #3
shelaneComment #6
shelane