Localized product URL in GraphQL products request

Topic summary

Seeking a way to retrieve localized product URLs via GraphQL for a multi‑market site. A product feed fetches all products, but the onlineStoreUrl field currently returns only a base domain plus slug, not the market-specific domain.

  • Need: Return the correct localized URL per market (e.g., Sweden “SE” vs. Germany “DE”).
  • Examples: Provided Swedish and German URLs for the same product to illustrate desired output.
  • Question: Can a market/locale code (e.g., “SE” or “DE”) be passed in the GraphQL query to get the corresponding localized onlineStoreUrl?

Notes:

  • GraphQL is an API query language; onlineStoreUrl refers to the product’s Online Store link field.
  • The example URLs are central to understanding the localization difference.

Status: No answer or resolution provided yet; the capability to parameterize onlineStoreUrl by market/locale remains an open question.

Summarized with AI on December 21. AI used: gpt-5.

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?