- Issue created by @Anybody
- 🇮🇱Israel jsacksick
The thing is, there is no canonical link for product variations, we don't have a product variation view page per saY.
- 🇩🇪Germany Anybody Porta Westfalica
Thanks for the quick reply @jsacksick - yes my idea was something like using the parent product's route which represents the variation or a redirect route on that, but I see the issue with that... also not really perfect.
- 🇩🇪Germany Anybody Porta Westfalica
Okay finally found out that our issue with field_formatter was not caused by this. So I think the canonical link template for product variations can still make sense, but wasn't the cause of an issue.
Feel free to close this, if you think that a canonical link for product variations is worse than the current implementation.
Thanks a lot!
- 🇮🇱Israel jsacksick
What issue were you experiencing exactly? I'm failing to see what problems exactly this causes?
- 🇩🇪Germany Anybody Porta Westfalica
field_formatter module allows placing links to the hosting entity (
#url
in render arrays) on fields (e.g. product variation image) using a boolean formatter setting. It uses the canonical, so I thought this edge-case lead to misbehaviour, but a wrongly configured view (core views settings non-inherited flaw) was the reason! -.-