From 3bb880c796c80272d9c61cd4b8b12ec4a7ca69f3 Mon Sep 17 00:00:00 2001 From: akfakmot Date: Thu, 7 Nov 2024 15:42:18 +0100 Subject: [PATCH 1/2] Fix creating of default culture Fix: Fix creating of default culture --- Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs b/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs index 323bedd1..656064b0 100644 --- a/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs +++ b/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs @@ -68,7 +68,7 @@ public async Task Handle(MigrateSitesCommand request, Cancellatio ContentLanguageGUID = cmsCulture.CultureGuid, ContentLanguageDisplayName = cmsCulture.CultureName, ContentLanguageName = cmsCulture.CultureCode, - ContentLanguageIsDefault = true, + ContentLanguageIsDefault = string.Equals(cmsCulture.CultureCode, defaultCultureCode, StringComparison.InvariantCultureIgnoreCase), ContentLanguageFallbackContentLanguageGuid = null, ContentLanguageCultureFormat = cmsCulture.CultureCode }); From 3d3be1c85937ef0b414b67bad61de1eade1b8c3d Mon Sep 17 00:00:00 2001 From: akfakmot Date: Thu, 7 Nov 2024 17:49:30 +0100 Subject: [PATCH 2/2] Allow trailing slash in source instance site's domain Modify: Allow trailing slash in source instance site's domain --- Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs b/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs index 656064b0..c18ddbd4 100644 --- a/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs +++ b/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs @@ -101,7 +101,7 @@ public async Task Handle(MigrateSitesCommand request, Cancellatio { WebsiteChannelGUID = kx13CmsSite.SiteGuid, WebsiteChannelChannelGuid = kx13CmsSite.SiteGuid, - WebsiteChannelDomain = kx13CmsSite.SiteDomainName, + WebsiteChannelDomain = kx13CmsSite.SiteDomainName.Trim('/'), WebsiteChannelHomePage = homePagePath, WebsiteChannelPrimaryContentLanguageGuid = migratedCultureCodes[defaultCultureCode].ContentLanguageGUID, WebsiteChannelDefaultCookieLevel = cookieLevel,