Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prewarm command causes image URLs to have pub prepended #3

Open
peterjaap opened this issue Jan 25, 2018 · 2 comments
Open

Prewarm command causes image URLs to have pub prepended #3

peterjaap opened this issue Jan 25, 2018 · 2 comments

Comments

@peterjaap
Copy link
Contributor

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

@peterjaap
Copy link
Contributor Author

Right now, we just use an nginx rewrite;

location ~ ^/pub/media/catalog/(.*) {
    return 301 /media/catalog/$1;
}

@peterjaap
Copy link
Contributor Author

peterjaap commented May 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant