Localized product URL in GraphQL products request

Localized product URL in GraphQL products request

Addrevenue
Shopify Partner
7 0 2

I have a multi market site, and I have created a product feed feature, which fetches all products using GraphQL. The onlineStoreUrl property contains only the "base" domain and slug. For example I have these two URLs:

https://led-nordic.se/collections/blockljus-enkel/products/vega-led-blockljus-o7-5-x-10-cm
https://led-nordic.de/collections/kerze-im-innenbereich/products/vega-led-stumpenkerze-o-7-5-x-10-cm

It is the same product, but localized URLs. How can pass for example "SE" or "DE" to the query and get the correct URL back?

Replies 0 (0)