Commit fe1fb37a authored by casey's avatar casey Committed by marcvangend

Issue #2646070 by casey, marcvangend: Cache context should be "route" instead of "url"

parent 25f807db
......@@ -356,8 +356,8 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
* {@inheritdoc}
*/
public function getCacheContexts() {
// This block must be cached per URL: every entity has its own canonical url
// This block must be cached per route: every entity has its own canonical url
// and its own fields.
return ['url'];
return ['route'];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment