Skip to content

Commit

Permalink
Concatenation of language name and web page path fixed (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomáš Krch <[email protected]>
  • Loading branch information
tkrch and tkrch authored Aug 13, 2024
1 parent 6a5139c commit 3dc2209
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ private async Task MigratePageUrlPaths(Guid webPageItemGuid, int webPageItemId,
{
CmsDocumentK11 doc => doc.DocumentUrlPath,
CmsDocumentK12 doc => doc.DocumentUrlPath,
null => $"{languageInfo.ContentLanguageName}/{ksTree.NodeAliasPath}",
null => $"{languageInfo.ContentLanguageName}{ksTree.NodeAliasPath}",
_ => null
}).NullIf(string.Empty) ?? ksTree.NodeAliasPath;

Expand Down Expand Up @@ -492,7 +492,7 @@ private async Task MigratePageUrlPaths(Guid webPageItemGuid, int webPageItemId,
private async Task CreateDefaultPageUrlAsync(Guid webPageItemGuid, Guid webSiteChannelGuid, Guid languageGuid,
ICmsTree ksTree, string documentCulture, ContentLanguageInfo languageInfo, WebsiteChannelInfo webSiteChannel, List<WebPageUrlPathInfo> existingPaths)
{
string urlPath = $"{languageInfo.ContentLanguageName}/{ksTree.NodeAliasPath}";
string urlPath = $"{languageInfo.ContentLanguageName}{ksTree.NodeAliasPath}";

var webPageUrlPath = new WebPageUrlPathModel
{
Expand Down

0 comments on commit 3dc2209

Please sign in to comment.