Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / PathBasedBreadcrumbBuilder.php
index ebc5df0b756bf71f3570b9ca7a17369911aa83ce..261ae32a2491184b6aa2614d037fb4b0a686bf18 100644 (file)
@@ -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()) {