Set the Hydrogen Storefront as default store instead of Online Store

Hi,

I followed the doc setup for setting custom domains with our Hydrogen Storefront: https://shopify.dev/docs/custom-storefronts/oxygen/migrate/redirect-traffic

We assigned our customdomain.com as primary domain for our Hydrogen Storefront. And we use checkout.customdomain.com for the “Online Store” so the checkout has a custom domain. All other requests to checkout.customdomain.com that are not checkout requests are forwarded to the customdomain.com.

This works fine until we start adding third-party apps, like Google, or Facebook. What happens is that they use checkout.customdomain.com has the default domain name (I’m assuming because it’s linked to “Online Store”). Which means all the requests are redirected but for Google Merchant, it’s a bad practice and should be the actual domain without a redirect.

So my questions is how do we make our Hydrogen storefront domain the default url for all third-party apps instead of the “Online Store” domain?

1 Like

Hi Octavez,

Could you try this approach for adding canonical links to all of the online store’s page template?

Hi, thank you, yes we were able to add feed rules for each feed!