4.10 Sitemap Categories by store

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Store mapping is left out of the Sitemap service

Libraries/Nop.Services/Seo/SitemapGenerator.cs

GetCategoryUrls() function


return _categoryService.GetAllCategories.Select(category =>


should be


return _categoryService.GetAllCategories(storeId: _storeContext.CurrentStore.Id).Select(category =>


Otherwise, the XML sitemap (domain.com/sitemap.xml) returns categories for all stores.
5 years ago
Thanks a lot for reporting. We'll fix it soon - https://github.com/nopSolutions/nopCommerce/issues/3228
5 years ago
Problem solved. Please see this commit for more details
5 years ago
Thanks guys! Good work on the new versions!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.