Search code examples
javascripthtmlmailchimpmandrillmailchimp-api-v3.0

Page not redirecting to given link Mandrill


I have created a template to redirect to a specific website . And I am passing website dynamically . So when user click It must redirect to then this dynamic website href="*|URL:redirect_link|*". But Instead of this website finding link on Mandrill website like this https://mandrillapp.com/templates/*%7CURL:redirect_link%7C* . It should open as a new website. What Wrong I am doing ?

        <a class="mcnButton " title="Register and explore!" 
href="*|URL:redirect_link|*" 
target="_blank" 
style="font-weight: normal;
letter-spacing: normal;
line-height: 100%;
text-align: center;
text-decoration: none;
color: #FFFFFF;
">Register and explore!</a>


Solution

  • Sorry i was wrong. here is the details from mailchimps knowledge base:

    *|URL:YOUR_MERGETAG|*

    Encodes the value of your merge tag for inclusion in a URL. For example, if you have a list field with the merge tag, |QUERY|, and the value includes something like I love monkeys — in your link, use http://www.yourwebsite.com/|URL:QUERY| to URL encode the value like: http://www.yourwebsite.com/I+love+monkeys.

    more info can be found here.

    Hope that helps.