Skip to content

Sitemap media URLs have pub/ in them #13002

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

Closed
subbu1993 opened this issue Jan 4, 2018 · 5 comments
Closed

Sitemap media URLs have pub/ in them #13002

subbu1993 opened this issue Jan 4, 2018 · 5 comments
Labels
Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update

Comments

@subbu1993
Copy link

subbu1993 commented Jan 4, 2018

Sitemap.xml image urls are generated with a pub/ in them

Preconditions

  1. Magento version - 2.1.8
  2. PHP version - 7.0.26

Steps to reproduce

  1. Go to Marketing > Sitemap
  2. Add sitemap
  3. Set filename to sitemap.xml
  4. Set path to /pub/media/

Expected result

  1. Sitemap is generated with Media URLs like https://www.site-name.com/media/catalog/....

Actual result

  1. Sitemap is generated with Media URLs like https://www.site-name.com/pub/media/catalog/....
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Jan 4, 2018
@magento-engcom-team
Copy link
Contributor

@subbu1993 , thanks for you report. Why you think for Expected result
Sitemap is generated with Media URLs like https://www.site-name.com/media/catalog/....&? But image is be in path https://www.site-name.com/pub/media/catalog/.... and opening without problem.

@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Progress: needs update labels Jan 5, 2018
@magento-engcom-team
Copy link
Contributor

@subbu1993, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

@linden2015
Copy link

@magento-engcom-team ,

On Magento 2.2.2 and Magento 2.2.3 we are experiencing the same issue.

Why you think for Expected result
Sitemap is generated with Media URLs like https://www.site-name.com/media/catalog/....&? But image is be in path https://www.site-name.com/pub/media/catalog/.... and opening without problem.

We expect the image url in the sitemap to be /media/.. because that's also the url of the image used on the actual website. In our case the /pub/media/.. does not work for the image. We use the index.php inside /pub folder, symlinked from the webroot of nginx.

@linden2015 linden2015 reopened this May 28, 2018
@hostep
Copy link
Contributor

hostep commented May 28, 2018

This is probably a duplicate of: #5321
Can you try if my suggested workaround fixes the issue?

@magento-engcom-team
Copy link
Contributor

Hi @linden2015
We are closing this ticket again, due to inactivity. Additionally, it really seems to duplicate #5321.
Please reopen again if it's now correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Progress: needs update
Projects
None yet
Development

No branches or pull requests

4 participants