Skip to content

Commit

Permalink
Fix multi language URL for single store with multi lang configuration #…
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Oct 22, 2021
1 parent aeb36d8 commit 581df26
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public async Task Execute()
if (!(stores.Count == 1 && languages.Count == 1))
file = $"sitemap-{store.Shortcut}-{lang.UniqueSeoCode}.xml";

if (stores.Count == 1 && languages.Count > 1)
file = $"sitemap-{lang.UniqueSeoCode}.xml";

await _mediaFileStore.WriteAllText(file, siteMap);
}
}
Expand Down

0 comments on commit 581df26

Please sign in to comment.