- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Looking at #3127757: field_linker and link_to_entity #url wrong language → this should already be correct, maybe this is a special case for commerce product variations, because they have no canonical URL?
See last patch in #3223974: Views not showing "Link to the Product variation" → that adds a canonical link, which they currently don't have: https://git.drupalcode.org/project/commerce/-/blob/3.x/modules/product/s...
- 🇩🇪Germany Anybody Porta Westfalica
Okay, testing this out a bit I can see that the product variations (correctly) don't generate a #url from the canonical. The (wrong) link originates from the products, not the product variation.
Still unclear, why the products language (
$langcode
) is returned wrong here. (de
instead ofen
) - 🇩🇪Germany Anybody Porta Westfalica
Sorry, it works great and correctly, the root cause was a misconfigured view to that the entities were retrieved in the wrong (row instead of content) language!