Media urls

Not sure if this is an issue but here it goes:

If you set up multiple domains on a storefront
The media url is generated from the domain you made it from

Replicate issue:

  1. Make two domains for a Storefront
  2. From domain A go to the theme, set a logo (save…)
  3. From domain B go to the frontend, inspect the media url of the logo
    It will be http://domainA/media
    instead of
    http://domainB/media

I think the media prefix should be dynamic based on the domain you are on
Not on the domain source…

Sounds like a bug. Could you please report it at issues.shopware.com?

1 „Gefällt mir“

Related question on stack overflow: shopware6 - Shopware Sales Channels - CORS problems with assets on different domains - Stack Overflow
Should be solved in the meantime with Shopware 6.5, at least I’m not experiencing this anymore for the logo.