Fixed broken links in HTML version of Digest email

Based on @eviltrout's fix from 7a60eacca95f7e036bb83ea512cec7225dc73c2c.

Reported at http://meta.discourse.org/t/some-links-in-emails-not-including-the-full-url/11211