RedirectTo

Overview 

Specify the target of a link be a complete URL stored in an attribute, data extension field, or variable. You can only use this function in HTML emails within the href attribute of an anchor tag. In text emails, add the http:// prefix and do not include any spaces within the parentheses. In order to retain tracking information for clicked links, you must include the anchor tags within the email itself and not the link retrieved via this function.

Syntax 

RedirectTo(1)

Function Properties 

OrdinalTypeDescription
1stringRequiredURL to redirect the browser

Example 

1<script runat="server">
2     var email = "aruiz@example.com";
3     var firstName = "Angela";
4     var baseUrl = "https://example.com?email=";
5     var nameJoin = "&name=";
6     Platform.Function.RedirectTo(baseUrl.concat(email,nameJoin,firstName);
7</script>

The system returns this URL:

1https://www.example.com?email=aruiz@example.com&name=Angela