X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FPathBasedBreadcrumbBuilder.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FPathBasedBreadcrumbBuilder.php;h=261ae32a2491184b6aa2614d037fb4b0a686bf18;hp=ebc5df0b756bf71f3570b9ca7a17369911aa83ce;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/src/PathBasedBreadcrumbBuilder.php b/web/core/modules/system/src/PathBasedBreadcrumbBuilder.php index ebc5df0b7..261ae32a2 100644 --- a/web/core/modules/system/src/PathBasedBreadcrumbBuilder.php +++ b/web/core/modules/system/src/PathBasedBreadcrumbBuilder.php @@ -144,7 +144,7 @@ class PathBasedBreadcrumbBuilder implements BreadcrumbBuilderInterface { // Add the url.path.parent cache context. This code ignores the last path // part so the result only depends on the path parents. - $breadcrumb->addCacheContexts(['url.path.parent']); + $breadcrumb->addCacheContexts(['url.path.parent', 'url.path.is_front']); // Do not display a breadcrumb on the frontpage. if ($this->pathMatcher->isFrontPage()) {