AnsweredAssumed Answered

Velocity: " makes a reference treated as a literal in an <a> tag

Question asked by Grégoire Michel on Mar 22, 2017
Latest reply on Mar 22, 2017 by Grégoire Michel

Hi all,


I am using the following code:




  "title":"BPD Case Study",




  "title":"Deny All Case Study",




  "title":"Infovista Case Study",




  "title":"ESSEC Case Study",




  "title":"KDS Case Study",





#foreach ($key in $lead.downloadcenter.split("[;]"))

#set ($key = ${key.trim()})

      <li><a href="${downloadLink.get($key).link}" target="_blank" class="mktNoTrack">$downloadLink.get($key).title</a> : $downloadLink.get($key).link</li>




The second call to $downloadLink.get($key).link displays the URL OK. But the first one in the href returns an error when we click the link.


For those who want to see it working, try this form: inficiences


Any help is welcome