<a href> with scripting not working | Community
Skip to main content
New Participant
May 21, 2017
Solved

<a href> with scripting not working

  • May 21, 2017
  • 1 reply
  • 3173 views

I'm having some trouble with an email script passing through a URL.

#set($dossierURL = "www.gadventures.com/trips/${trips_cList.get($listlength).dossier}" )

#set($imageLink = ${trips_cList.get($listlength).dossierImageURL} )

<a href="$dossierURL/" style="color: #47268d; font-weight: bold; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> <img src="$imageLink" width="600" border="0" class="deviceWidth" style="display:block;border-width:0;-ms-interpolation-mode:bicubic;"> </a>

The image passes through just fine, but the link goes to something like this:

%24%7Bmy.vdossier_url_1987005%7D/?utm_source=&utm_medium=email&utm_campaign=&mkt_tok=eyJpIjoiTkRkalpXUmxNREJpTjJJMiIsInQiOiJPaE43MCtleHU5c0ZpV05WRHZkbTlcL1o2Y2ZMZkdrMnRKczFoTWdpUWdCc01QUDdMXC95RGczMTRcL3FqcGFuc1Nvb1draU05M0h3V2pDOWVhRFdkYlNWUT09In0%3D

Clearly the token is not translating properly, but what's even more confusing is that there are extra parameters on the URL that are on the end of the URL (?utm_source etc). Is this possibly because I have other email script tokens using the same variables in my email program? That's the only explanation I can think of.

Thanks, Phil

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

Use formal notation when outputting: ${dossierURL} and ${imageLink}.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 21, 2017

Use formal notation when outputting: ${dossierURL} and ${imageLink}.

New Participant
May 22, 2017

Thanks again Sanford!