- Issue created by @rutiolma
- πΊπΈUnited States DamienMcKenna NH, USA
Thank you for reporting the bug. I wonder if π Generate tokens values method does not take into account the entity language Needs work might solve the problem for you?
- π΅πΉPortugal rutiolma
Hey Damien, the patch on issue π Generate tokens values method does not take into account the entity language Needs work doesn't really address the issue with webforms.
Webforms, and potentially other config entities accessible through a canonical link, should rely on the current language interface to render the [site:name] token.
I didn't test this with other config entities than webforms but I tried to make a generic patch that should work with every config entity. - Status changed to Needs work
8 months ago 12:32pm 23 August 2024 - π΅πΉPortugal rutiolma
I see that this is very similar to π Canonical metatag on Views pages no longer refers to current, language page Needs work
Maybe this patch is more generic and could work also for that issue Thanks @rutioma. I agree, we need some generic solution for config entities. I just wonder, if it's better to use language from \Drupal\Core\Language\LanguageManagerInterface::getConfigOverrideLanguage() for config entities instead of interface language.