elgentos / LargeConfigProducts

Large Configurable Products workaround for Magento 2
91 stars 28 forks source link

Prewarm command causes image URLs to have pub prepended #3

Open peterjaap opened 6 years ago

peterjaap commented 6 years ago

Even though the frontend might not necessarily use the pub/media/ path but the /media path without pub.

peterjaap commented 6 years ago

Right now, we just use an nginx rewrite;

location ~ ^/pub/media/catalog/(.*) {
    return 301 /media/catalog/$1;
}
peterjaap commented 6 years ago

Here's the Magento issue (https://github.com/magento/magento2/issues/8868) and another workaround; https://magento.stackexchange.com/a/167878/237