Hi,
We are facing some issues with URLs that are generated within a capture tag using user e-mail addresses having a hyphen in it.
This is a code example of what we want to achieve:
User e-mail: {{ user.email }}
User name: {{ user.name }}
{% capture linkToUploadProxy %}http://xxxxx.ey.net:9999/export/corporatetax/pdf?useremail={{ user.email }}{% endcapture %}
{{ linkToUploadProxy }} <br>
{% linkto linkToUploadProxy target:"_blank" %}Link{% endlinkto %}
When the user has an e-mail address without hyphen everything works fine. However, when the user has a hyphen in their e-mail address, we get following liquid error:
Liquid error: URI must be ascii only"http://xxxxx.ey.net:9999/export/corporatetax/pdf?useremail=name.surname1 \u2010 surname2@be.ey.com" in code: linkto linkToUploadProxy target:"_blank"
We can see the hyphen is translated into \u2010 . However, when I display the capture tag, that issue does not appear there. It is only within the linkto tag.
Please also find hereunder a screenshot showing our issue:
Is this a bug or do you have a workaround?
Thanks in advance.
Kind regards,
Gianluca