M2.4.6: XML Sitemap is not created for correct store view

Created by Esther Nguyen, Modified on Tue, 14 Jan at 11:40 AM by Esther Nguyen

ISSUE:


XML Sitemaps are created for the another site in the Magento 2 installation.


For example: we want to create sitemap for https://dev.sea-safe-up.com . But it is showing for https://dev.sails-up.eu. 


SOLUTION:


Our module is missing the part that takes the store view when rendering the link, update the set store view part like Magento core does in vendor/magento/module-sitemap/Block/Adminhtml/Grid/Renderer/Link.php 


To resolve the issue, please edit the file app/code/Bss/XmlSiteMap/Block/Adminhtml/Grid/Renderer/Link.php as below: 



If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article