Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

the | within: collection filter is broken for multi-language product url

the | within: collection filter is broken for multi-language product url

SherpasDesign
Shopify Partner
55 0 23

Hi everyone, but most importantly Shopify devs!

Since yesterday we have started receiving complaints from merchants that their product urls  on the collections/all pages are broken when the page is being browser in another language.

Please see here:

https://hionlyeyes.com/it/collections/all

The | within: collection filter is generating wrong urls when a language is selected, it outputs the language locale suffix /it twice.

Here is a video which shows the problem present on the collections all page, but not on the normal collection pages:

https://www.loom.com/share/74eab3c9fa44485faa8f9a213b1c8e17

I really hope that Shopify are going to react to this quickly because this is a bug that has been introduced in the liquid engine and I believe it has been introduced just now.

Thank you!

 

 

 

Reply 1 (1)

Dayana_Nezhura
Shopify Partner
34 0 26

Hi @SherpasDesign 

This bug has existed for a long time, and it looks like it won't be fixed soon. For now, try these changes:

product.url | within: collection -> product.url | collection