parent
51721e3c50
commit
8c6c4aebc1
|
@ -107,7 +107,7 @@ public class SiteMapService : ISiteMapService
|
|||
await CreateCategoriesSiteMapsAsync();
|
||||
await CreateProductsSiteMapsAsync();
|
||||
await CreateBlogsSiteMapsAsync();
|
||||
await CreateBrandsSiteMapsAsync();
|
||||
//await CreateBrandsSiteMapsAsync();
|
||||
await CreateBlogCategoriesSiteMapsAsync();
|
||||
await CreatePagesSiteMapsAsync();
|
||||
|
||||
|
@ -180,7 +180,7 @@ public class SiteMapService : ISiteMapService
|
|||
}
|
||||
}
|
||||
|
||||
private async Task CreateBrandsSiteMapsAsync()
|
||||
private async Task CreateBrandsSiteMapsAsync()
|
||||
{
|
||||
var siteMapsUId = SiteMapUIds.Brands;
|
||||
|
||||
|
@ -564,7 +564,7 @@ public class SiteMapService : ISiteMapService
|
|||
root.AppendChild(urlElement);
|
||||
|
||||
XmlElement loc = doc.CreateElement("loc", doc.DocumentElement?.NamespaceURI);
|
||||
loc.InnerText = Path.Combine($"{_siteSetting.WebSiteUrl}/blogs/{blogCategory.Id}/{blogCategory.Slug}");
|
||||
loc.InnerText = Path.Combine($"{_siteSetting.WebSiteUrl}/blogs?blogCategoryId={blogCategory.Id}");
|
||||
urlElement.AppendChild(loc);
|
||||
|
||||
XmlElement lastmod = doc.CreateElement("lastmod", doc.DocumentElement?.NamespaceURI);
|
||||
|
|
Loading…
Reference in New Issue