Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

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

SherpasDesign
Shopify Expert
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