How do I make anchor links work in an email? | Community
Skip to main content
Jimmy_Hang
New Participant
December 23, 2019
Solved

How do I make anchor links work in an email?

  • December 23, 2019
  • 1 reply
  • 7064 views

Hi - I am setting up an email which includes 4 links to specific parts of a landing page. 3 out of 4 anchor links work, but the 4th one won't work - I get a validation error when I try to approve the email. All 4 links go to the same page, just different sections with a hashtag

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Thanks for looking into this, Sanford - I will follow your guidance and have our WebDev team eventually update our website to avoid those terms.


A-ha, URL-encode the "e" to avoid the reparsing error:

<a href="https://plaid.com/legal/#%65nd-user-privacy-policy" target="_blank" class="mktNoTrack" id="">End User Privacy Policy</a>

Some browsers will display the "%65" as "e" in the location bar, others will keep it as "%65", but the anchor link works either way.

1 reply

SanfordWhiteman
New Participant
December 23, 2019

Well, you haven't shown an actual example, so it's impossible to know for sure, but you should replace

 

#

in your URLs with

 

${esc.h}
Jimmy_Hang
New Participant
December 23, 2019

Thanks for the help, Sanford! I tried what you suggested and got a different error now - see below

The original link I am trying to include is this: https://plaid.com/legal/#end-user-privacy-policy 

SanfordWhiteman
New Participant
December 23, 2019

That link definitely needs the escape character as indicated. #end is a reserved word and can't be used literally.

Please show the part of the HTML where you subbed in the escape character. (Show the whole <a> tag, including closing </a>.)