diff --git a/code/email/NewsletterEmail.php b/code/email/NewsletterEmail.php index 9082a741..c287eb73 100644 --- a/code/email/NewsletterEmail.php +++ b/code/email/NewsletterEmail.php @@ -109,7 +109,12 @@ function __construct($newsletter, $recipient, $fakeRecipient=false) { } // replace the link - $replacements[$link] = $tracked->Link(); + if($link == '/'){ + $link = '"/"'; + $replacements[$link] = '"' . $tracked->Link() . '"'; + }else{ + $replacements[$link] = $tracked->Link(); + } // track that this link is still active $current[] = $tracked->ID;