diff --git a/core/modules/system/src/Plugin/Condition/RequestPath.php b/core/modules/system/src/Plugin/Condition/RequestPath.php index 64331bef847ea5ddfa54a2dec40d4b777835ac08..4cd92de7236d58f8beda7cfa4c17d4101e670037 100644 --- a/core/modules/system/src/Plugin/Condition/RequestPath.php +++ b/core/modules/system/src/Plugin/Condition/RequestPath.php @@ -164,9 +164,7 @@ public function evaluate() { */ 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; }