4.10 Sitemap Categories by store

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 5 ans
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.
Il y a 5 ans
Thanks a lot for reporting. We'll fix it soon - https://github.com/nopSolutions/nopCommerce/issues/3228
Il y a 5 ans
Problem solved. Please see this commit for more details
Il y a 5 ans
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.