- Issue created by @GuillaumePacilly
- Merge request !13define cache contexts in the getCacheContexts method → (Open) created by GuillaumePacilly
The language switcher cacheability has been modified here:
https://git.drupalcode.org/project/lang_dropdown/-/compare/8.x-2.1...8.x...
However the cache contexts provided in the build are not taken into account / overridden by the getCacheContexts() implementation of the block.
As a result the block does not properly vary between url context, and language options are inconsistent with the current url.
Use the getCacheContexts method instead of the build to define the proper cache contexts.
Active
2.0
Code