Sitecore EXM断开邮件中的链接

时间:2016-08-24 10:30:18

标签: sitecore sitecore8.1 sitecore-ecm

我创建了“简单HTML消息”,并使用富文本编辑器在消息正文中添加了一些内部链接

在HTML中,它看起来像这样:

<a href="~/link.aspx?_id=D16025CAB7D049FDAC6863C29C13F0C1&amp;_z=z">TEST</a>

当我发送测试消息时,此链接将转换为:http:mydomain.com/://mydomain.com/TEST

此链接已损坏,冗余部分 - ://mydomain.com/

我该如何解决?

LinkManager.config

<add name="sitecore" type="Sitecore.Links.LinkProvider, Sitecore.Kernel" addAspxExtension="false" alwaysIncludeServerUrl="false" encodeNames="true" languageEmbedding="never" languageLocation="filePath" lowercaseUrls="false" shortenUrls="true" useDisplayName="true" siteResolving="true" patch:source="LinkManager.config"/>

Sites.config:

<site name="Website3" targetHostName="site1.mydomain.com" hostName="site1.mydomain.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/site1.mydomain.com" startItem="/home" language="en" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="25MB" filteredItemsCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" cacheRenderingParameters="true" renderingParametersCacheSize="10MB" patch:source="Sites.config"/>
<site name="Website2" targetHostName="site2.mydomain.com" hostName="site2.mydomain.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/site2.mydomain.com" startItem="/home" language="en" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="25MB" filteredItemsCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" cacheRenderingParameters="true" renderingParametersCacheSize="10MB" patch:source="Sites.config"/>
<site name="Website1" targetHostName="mydomain.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/www.mydomain.com" startItem="/home" language="en" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="50MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="25MB" filteredItemsCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" cacheRenderingParameters="true" renderingParametersCacheSize="10MB" patch:source="Sites.config"/>

0 个答案:

没有答案