diff --git a/src/Plugin/Preprocess/Breadcrumb.php b/src/Plugin/Preprocess/Breadcrumb.php index b21a73b..34647be 100755 --- a/src/Plugin/Preprocess/Breadcrumb.php +++ b/src/Plugin/Preprocess/Breadcrumb.php @@ -40,6 +40,8 @@ public function preprocess(array &$variables, $hook, array $info) { 'text' => $page_title, 'attributes' => new Attribute(['class' => ['active']]), ]; + // Add cache context based on url. + $variables['#cache']['contexts'][] = 'url'; } } }