Velocity script link is getting "%0D" added at the end breaking the link
Hi everyone,
I have the following situation: I'm using a very simple Velocity script in an email to display a link to a different landing page depending on which course someone completed. We also have UTM parameters added to the links in an email using a variable at template level.
The script is working - as in it's pushing the correct link. The problem is that the link in the email is seemingly broken and redirects me to the website's homepage, as there's %0D added between the link and the UTM parameters. I can't figure out where the extra characters are coming from - I've checked the template and there's nothing in there, plus other emails without the Velocity script work fine.
The script I'm using is:
#if (${lead.Training_Expert_Complete__c}=="1")
https://info.jtfmarketing.co/Post-Training-Survey-Expert.html
#else
https://info.jtfmarketing.co/training-evaluation.html
#end
I'd appreciate any support you could provide.
Thanks,
Maddie