summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-09-01 14:15:22 +0100
committerAlex Pott2015-09-01 14:15:22 +0100
commit8b4ceac2c76593916c47e6055b30e6b4beede5dd (patch)
tree7fe2d351bd8164bafe46081601a2e34ee808d3cb
parentaec0210307da65c1473f665ca52bdb0cb5c4d038 (diff)
Issue #2521978 by kim.pepper: core/modules/system/src/Plugin/Condition/RequestPath should use the 'url.path' cache context
-rw-r--r--core/modules/system/src/Plugin/Condition/RequestPath.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/modules/system/src/Plugin/Condition/RequestPath.php b/core/modules/system/src/Plugin/Condition/RequestPath.php
index 64331be..4cd92de 100644
--- a/core/modules/system/src/Plugin/Condition/RequestPath.php
+++ b/core/modules/system/src/Plugin/Condition/RequestPath.php
@@ -164,9 +164,7 @@ class RequestPath extends ConditionPluginBase implements ContainerFactoryPluginI
*/
public function getCacheContexts() {
$contexts = parent::getCacheContexts();
- // @todo Add a url.path cache context in
- // https://www.drupal.org/node/2521978.
- $contexts[] = 'url';
+ $contexts[] = 'url.path';
return $contexts;
}