Jump to content

Links in email templates not rendering correctly


itsmir

Recommended Posts

WHMCS v5.3.10

PHP 5.4

 

Links created from merge fields are no longer rendering correctly.

 

For example I have this text in an email template:

 

http://www.{$service_domain}

 

It appears as the correct link in the email but when clicking on it, it goes to: http://www.%7B%24service_domain%7D/

 

This behaviour only started after upgrade to 5.3.10 & PHP 5.4

 

Please can you advise.

 

Many Thanks

Link to comment
Share on other sites

Hello,

 

When dealing with data that has been html entity encoded, you need to decode it in your smarty template:

 

{$service_domain|unescape:"html"}

 

I will double check with our development team tomorrow if this specific change was intentional or a regression, in the mean time you can work around this in your email template.

 

Have a great day,

 

Nate C

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated