Closed electronick86 closed 4 years ago
I see here that specials characters should be encoded.
I suppose that the encoding done by mailcoach is the expected behavior and that the problem is on my client site. His website should interpret these two URLs exactly the same way (https://testdomain.be/?ed=MYED#|SU
and https://testdomain.be/?ed=MYED#%7CSU
).
Unfortunately, it's not the case ;-)
This is definitely something the website should support, url encoding/decoding is a standard practice to make HTML safe to process and send.
If you'd like to change this, you can replace the PrepareEmailHtmlAction
with a version of your own in the mailcoach.actions.prepare_email_html
config key that extends our class and calls urldecode
on the resulting HTML. This could have unintended side effects though, so I suggest testing it thoroughly before using it on live campaigns.
Thanks a lot @riasvdv !
Hi!
I'm not sure my problem is due to mailcoach at all, but as I can't explain it, I would like to get your advise.
My customer has a website with URL that contains pipes ("|") characters.
When i create this mail, the preview of mailcoach contains a correct link.
Once the email is sent, the link is changed with the pipe character encoded to
%7C
.Do you have an idea of how could I have the pipe character in the email received?
Thanks!!