4.10 Sitemap Categories by store

Posted: August 09, 2018 at 2:11 PM Quote #210345
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.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 10, 2018 at 2:24 AM Quote #210359
Thanks a lot for reporting. We'll fix it soon - https://github.com/nopSolutions/nopCommerce/issues/3228
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2018
Learn more