Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emails: Fix contact_us macros for "mailto" scheme in email links.
Lauryn Menardad3bed20865a
diff --git a/templates/zerver/emails/account_registered.html b/templates/zerver/emails/account_registered.htmlindex f182c501574..eb22215d37a 100644--- a/templates/zerver/emails/account_registered.html+++ b/templates/zerver/emails/account_registered.html@@ -54,7 +54,7 @@<p>{% if corporate_enabled %}- {% trans %}Questions? <a href="{{ support_email }}">Contact us</a> — we'd love to help!{% endtrans %}+ {% trans %}Questions? <a href="mailto:{{ support_email }}">Contact us</a> — we'd love to help!{% endtrans %}{% else %}{{macros.contact_us_self_hosted(support_email)}}{% endif %}diff --git a/templates/zerver/emails/macros.html b/templates/zerver/emails/macros.htmlindex c1436ab3208..6d6004f13ce 100644--- a/templates/zerver/emails/macros.html+++ b/templates/zerver/emails/macros.html@@ -11,9 +11,9 @@{%- endmacro %}{% macro contact_us_self_hosted(email) -%}- {% trans %}If you have any questions, please contact this Zulip server's administrators at <a href="{{ email }}">{{ email }}</a>.{% endtrans %}+ {% trans %}If you have any questions, please contact this Zulip server's administrators at <a href="mailto:{{ email }}">{{ email }}</a>.{% endtrans %}{%- endmacro %}{% macro contact_us_zulip_cloud(email) -%}- {% trans %}Do you have questions or feedback to share? <a href="{{ email }}">Contact us</a> — we'd love to help!{% endtrans %}+ {% trans %}Do you have questions or feedback to share? <a href="mailto:{{ email }}">Contact us</a> — we'd love to help!{% endtrans %}{%- endmacro %}