HTML - Do you use absolute paths for newsletter links and images?

Last updated by Tiago Araújo [SSW] about 2 years ago.See history

Newsletters should always use absolute references to all links and images within the HTML. Relative paths don't contain the server information so external users see a broken link/image - the outside email application won't find the where the file is.

<a href="/ssw/Company/ContactUs.aspx "><img src="/SSW/images/SSWLogo.png" /></a>

Figure: Bad example - Using relative paths for both link and image on a newsletter

<a href="https://ssw.com.au/ssw/Company/ContactUs.aspx "
  ><img src="https://ssw.com.au/SSW/images/SSWLogo.png"
/></a>

Figure: Good example - Using absolute paths for both link and image on a newsletter


Tiago Araujo
We open source.Loving SSW Rules? Star us on GitHub. Star
Stand by... we're migrating this site to TinaCMS