I'm getting this error when trying to send an email campaign, so I've debuged the pipeline Sitecore.Modules.EmailCampaign.Core.Pipelines.GenerateLink.SetServerUrl
and came to conclusion that the LinkManager.GetItemUrl
for any email item is getting the following link:
https:///sitecore-modules/shell/Email/Messages/2019/12/19T10270075/Announcement
It seams that hostname
is missing and this causes an exception when trying to create a new URI because of the extra slash, am I missing some configuration on EXM?
20160 10:33:09 ERROR Exception: System.UriFormatException Message: Invalid URI: The hostname could not be parsed. Source: System at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Sitecore.Modules.EmailCampaign.Core.HostnameMapping.HostnameMappingService.GetServerUrl(Item item) at Sitecore.Modules.EmailCampaign.Messages.HtmlMailBase.get_ServerUrl() at Sitecore.Modules.EmailCampaign.Messages.HtmlMailBase.get_PreviewBaseUrl() at Sitecore.Modules.EmailCampaign.Messages.HtmlMailBase.InsertEmailOpenedImg(Boolean preview, String& html) at Sitecore.Modules.EmailCampaign.Messages.WebPageMail.GetMessageBody(Boolean preview) at Sitecore.EmailCampaign.Cm.MessageInfo.FillContentEditorInfo()