Avatar

Employee Advisor

Given the following personalization block code

 

 

 

?utm_source=newsletter&utm_medium=email&utm_campaign=unitedkingdom-bau&utm_content=newsletter_<%=formatDate(new Date(), '%Bl_%Y').toLowerCase()+formatDate(new Date(), '-professionalDate%2D/%2M/%4Y')%>

 

 

 

 If I execute that in a workflow to construct URL i get the following which is correct

 

?utm_source=newsletter&utm_medium=email&utm_campaign=unitedkingdom-bau&utm_content=newsletter_november_2021-professionalDate12/11/2021

 

 

 

However, after campaign encrypts the URL for tracking it breaks the url

 

 

https://localhost/r/?id=h71eff9,1696def,ca58eb&p1=&p2=november_2021-professionalDate12/11/2021&p3=

 

 

 

In the delivery template, the actual url looks like the following

 

 

 

https://www.somedomain.com/uk/wealth-management/insights/talking-points/why-the-worlds-wealthy-are-still-buying-homes-in-london/<%@ include view="UTM_newsletter" %>

 

 

 

 

 

I tried using escapeUrl but doesnt seem to work, any hints?