Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Turn off autoescape for confirmation link

Tomasz Szymański0915d35ef805
diff --git a/templates/templated_email/account/confirm.email b/templates/templated_email/account/confirm.email
index 981b9dba31..0c99e84e76 100644
--- a/templates/templated_email/account/confirm.email
+++ b/templates/templated_email/account/confirm.email
@@ -7,11 +7,11 @@
{% block plain %}
{% include 'templated_email/shared/_header.email' %}
{% blocktrans context "Account confirmation e-mail text" %}
-In order to log into {{domain}}, you have to confirm your email address first.
+In order to log into {{ domain }}, you have to confirm your email address first.
Please click the link below to do so and log into your account.
{% endblocktrans %}
-{{ confirm_url }}
+{{ confirm_url | safe }}
{% include 'templated_email/shared/_footer.email' %}
{% endblock %}
diff --git a/templates/templated_email/source/confirm.mjml b/templates/templated_email/source/confirm.mjml
index bece3c6da9..542f302216 100644
--- a/templates/templated_email/source/confirm.mjml
+++ b/templates/templated_email/source/confirm.mjml
@@ -14,13 +14,13 @@
</mj-text>
<mj-text>
{% blocktrans trimmed context "Account confirmation e-mail text" %}
- In order to log into {{domain}}, you have to confirm your email address first.
+ In order to log into {{ domain }}, you have to confirm your email address first.
Please click the link below to do so and log into your account.
{% endblocktrans %}
</mj-text>
<mj-text>
- <a href="{{ confirm_url }}">
- {{ confirm_url }}
+ <a href="{{ confirm_url | safe }}">
+ {{ confirm_url | safe }}
</a>
</mj-text>
</mj-column>