title: Sitecore EXM broken link in the mail message
body: <p>I've created "Simple HTML message" and added some internal links in the Message body using rich text editor</p>
  
  <p>In html it look like this: </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a href="~/link.aspx?_id=D16025CAB7D049FDAC6863C29C13F0C1&amp;amp;_z=z"&gt;TEST&lt;/a&gt;
  </code></pre>
  
  <p>When I sending test message this link is converted to: <code>http:mydomain.com/://mydomain.com/TEST</code></p>
  
  <p>This link is broken, redundant part - <code>://mydomain.com/</code></p>
  
  <p>How I can fix it?</p>
  
  <p>LinkManager.config</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;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"/&gt;
  </code></pre>
  
  <p>Sites.config:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;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"/&gt;
  &lt;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"/&gt;
  &lt;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"/&gt;
  </code></pre>