I have a very complex link. It's a Google Calendar Link so it's very long and has all kinds of characters. (see image)
The link works fine when clicked directly and even works in the SFMC UI. It breaks once it gets to the email and the issue seems to be that RedirectTo is breaking it. It's replacing the ? with &. So I tried it without RedirectTo and the link doesn't work at all. Which is odd, because I've had times with not using RedirectTo works fine, and other times when it doesn't. And I've heawrd it's best practice to use it. I also know you can't track clicks without it, but we don't need to track clicks so that's not an issue. I just need to get this link to work. Anyone had a similar issue like this?
The really, really strange thing is that the MSO version of the link works
So the top one works, the bottom one doesn't:
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="%%=RedirectTo(@calendarInviteURL)=%%" style="height:40px;v-text-anchor:middle;width:180px;" arcsize="15%" stroke="f" fillcolor="#052E60">
<w:anchorlock/>
<center>
<![endif]-->
<a href="%%=RedirectTo(@calendarInviteURL)=%%" style="background-color:#052E60;border-radius:5px;color:#ffffff;display:inline-block;font-family:arial,sans-serif;font-size:12px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:180px;-webkit-text-size-adjust:none;">ADD TO CALENDAR</a>
<a>
tag -<a href="" alias="CalendarInvite">
. 2. Try using the WrapLongURL() AMPscript function around it.RedirectTo(WrapLongURL(@calendareInviteURL))
(developer.salesforce.com/docs/…)