Skip to content

Commit 581df26

Browse files
Fix multi language URL for single store with multi lang configuration #141
1 parent aeb36d8 commit 581df26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Business/Grand.Business.System/Services/BackgroundServices/ScheduleTasks/GenerateSitemapXmlTask.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public async Task Execute()
5353
if (!(stores.Count == 1 && languages.Count == 1))
5454
file = $"sitemap-{store.Shortcut}-{lang.UniqueSeoCode}.xml";
5555

56+
if (stores.Count == 1 && languages.Count > 1)
57+
file = $"sitemap-{lang.UniqueSeoCode}.xml";
58+
5659
await _mediaFileStore.WriteAllText(file, siteMap);
5760
}
5861
}

0 commit comments

Comments
 (0)