Prestashop Email Templates Url Broken After Editing (%7B, %7D)

Email is one of the most important thing when it comes time to have a sales conversation and drive conversions, there's one channel that continues to outperform the rest: good old-fashioned email.

According to recent research and surveys:
  1. Email has an ROI of around 4,300% (according to the Direct Marketing Association)
  2. 80% of people say they receive marketing messages alongside their personal emails on a daily basis.
  3. 70% of people make use of coupons or discounts they learn about from email.
  4. 60% of people say that receiving special offers is the top reason they subscribe to an email list from a business.
In other words, if your ecommerce business hasn't taken the time to adopt email marketing, then you're leaving money on the table.

On Prestashop, several people are having issue's when translating or editing templates the url's in the edited e-mail template are broken. When you edited a template url brackets " { " and " } " are replaced by %7B and %7D.

Example: {weburl} changes to %7Bweburl%7D

How to solve this problem?

Locate: YOUR_WEBSITE_ROOT/controllers/admin/AdminTranslationsController.php
(Please note: This fix does not work for prestashop cloud)

Look for :
file_put_contents($path.$mail_name.'.'.$type_content, Tools::purifyHTML($content));
Replace that line with (bug-fix added in next release of prestashop):
file_put_contents($path.$mail_name.'.'.$type_content, Tools::purifyHTML($content, array('{', '}')));
 Please note: after adding this change you have to replace %7B and %7D. with " { " and " } " (Now they wont change anymore!)