diff --git a/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs b/Migration.Tool.Core.KX13/Handlers/MigrateSitesCommandHandler.cs index 323bedd1..c18ddbd4 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 }); @@ -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,