diff --git a/.version b/.version
index 217625a..636ed6a 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-1.0.0.1
\ No newline at end of file
+1.0.1.2
\ No newline at end of file
diff --git a/Netina.Api/Netina.Api.csproj b/Netina.Api/Netina.Api.csproj
index a7eff94..eed7a18 100644
--- a/Netina.Api/Netina.Api.csproj
+++ b/Netina.Api/Netina.Api.csproj
@@ -6,8 +6,8 @@
enable
true
Linux
- 1.0.0.1
- 1.0.0.1
+ 1.0.1.2
+ 1.0.1.2
diff --git a/Netina.Core/BaseServices/SiteMapService.cs b/Netina.Core/BaseServices/SiteMapService.cs
index 8100722..1c03399 100644
--- a/Netina.Core/BaseServices/SiteMapService.cs
+++ b/Netina.Core/BaseServices/SiteMapService.cs
@@ -1,6 +1,7 @@
using System.IO.Compression;
using System.Xml;
using Netina.Core.Models;
+using Netina.Domain.Entities.Blogs;
using Netina.Domain.Entities.ProductCategories;
namespace Netina.Core.BaseServices;
@@ -373,7 +374,10 @@ public class SiteMapService : ISiteMapService
XmlElement imageLoc = doc.CreateElement("image:loc", "http://www.google.com/schemas/sitemap-image/1.1");
- imageLoc.InnerText = $"{_siteSetting.StorageBaseUrl}/{product.MainImage.Replace("Med", "Thumb")}";
+ var imageUrl = product.MainImage.Contains("Med") || product.MainImage.Contains("Thumb")
+ ? product.MainImage.Replace("Med", "Thumb")
+ : Path.Combine("Images", "Med", product.MainImage);
+ imageLoc.InnerText = $"{_siteSetting.StorageBaseUrl}/{imageUrl}";
image.AppendChild(imageLoc);
@@ -473,7 +477,10 @@ public class SiteMapService : ISiteMapService
XmlElement imageLoc =
doc.CreateElement("image:loc", "http://www.google.com/schemas/sitemap-image/1.1");
- imageLoc.InnerText = $"{_siteSetting.StorageBaseUrl}/{blog.MainImage.Replace("Med", "Thumb")}";
+ var imageUrl = blog.MainImage.Contains("Med") || blog.MainImage.Contains("Thumb")
+ ? blog.MainImage.Replace("Med", "Thumb")
+ : Path.Combine("Images", "Med", blog.MainImage);
+ imageLoc.InnerText = $"{_siteSetting.StorageBaseUrl}/{imageUrl}";
image.AppendChild(imageLoc);