Hi all - I am hoping someone can help me understand how URL encoding works in Marketo.
We have a trial download link https://somepathtoaem.ca.com./someotherpath/download.html?email={{lead.Email Address:default=email a...
I went ahead and checked the HTML Encode Tokens in Field Management.
I understand that URL encoding is not exactly the same as HTML encoding so I am wondering if this will encode the URL correctly or not?
So in the event our token populates with an email address, something like betty.ann+001@gmail.com is there anything special I need to do to make sure it encodes the '+'?
Thank you!!
You can't automatically URL-encode the output, assuming the token is being output into an email (not an LP) unless you use email scripting.
I assume the destination LP is not Marketo-hosted, right? (Otherwise there'd be no reason to include the email in the link at all.) If you own the code on the destination LP, you can simply have it use standard (non-form) decoding and then the + sign will be taken literally, as you want.
Another alternative is to pass the email address in the pathname rather than the query string (http://somepathtoaem.ca.com/download/user+001@example.com//somepathtoaem.ca.com/download/user+001@example.com) because + is always literal in the path (of course, the server would have to know to look in the path).
Still another alternative is to redirect via a Mkto LP, where you have fuill control over formatting.
Thanks, this is really helpful. Cheers!