Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

Breadcrumbs primary product_cat returns link of wrong language #17916

Open StenderIternum opened 2 years ago

StenderIternum commented 2 years ago

Please give us a description of what happened.

Hi Yoast - When I am using yoast breadcrumbs in elementor on single products, the structure of the breadcrumbs works fine, but the primary category returns the english version of the terms link, even though the tem title is translated fine. It seems to work if we only have parent-sub cat, but if you have parent-sub-sub it breaks.

Please describe what you expected to happen and why.

I would expect the breadcrumbs links to be returned in the language you are currently viewing.

How can we reproduce this behavior?

  1. I guess you can see the issue here https://www.elwislighting.com/butik/pandelamper/outdoor-pandelamper/hobby-fritid-pandelamper/elwis-pro-n400-r/ The "hobby og fritid" link goes to "hobby and leisure"

Technical info

Used versions

StenderIternum commented 2 years ago

Note - Client wanted me to remove breadcrumbs while we find a fix for this - So it can no longer be seen on the link