Skip to content

Commit

Permalink
Merge pull request #149 from localgovdrupal/fix/typo-in-cache-context…
Browse files Browse the repository at this point in the history
…-name

Fix for typo in cache context name
  • Loading branch information
andybroomfield committed Jun 30, 2021
2 parents ef0149e + 8f0621c commit 6b5d7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localgov_alert_banner.module
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function localgov_alert_banner_entity_build_defaults_alter(array &$build, Entity
$build['#cache']['contexts'][] = 'session';

// Set a cache context based on if on the front page.
$build['#cache']['contexts'][] = 'url.path:is_front';
$build['#cache']['contexts'][] = 'url.path.is_front';

// Get token and use as a cache tag.
$token = $entity->getToken();
Expand Down

0 comments on commit 6b5d7a6

Please sign in to comment.