The discussion revolves around improving the handling of email addresses in the contact_url setting on Discourse. Dannii explains that using mailto: in the contact_url results in an unappealing, linked display, and they seek a way to show the email address without the mailto: prefix. gerhard suggests whitelisting the email for auto-generated emails instead, which Dannii confirms resolves their issue. supermathie and Stephen debate whether mailto: should be treated as a valid URL and whether the display should be improved to show just the email address. PhilH.ftopia asks if this improvement is planned, highlighting the current visual issue.
We currently are leaving our contact url setting blank, so that the contact email setting is used, which shows our support email address unlinked on the about page. But because we’ve also set up our support email address to be received by one of the forum groups, the new version emails sent to the contact email address are rejected because they’re autogenerated!
If I were to change our contact email address and then put our support email address into the contact url setting, it links it to https://intfiction.org/support@intfiction.org, obviously not what we want!
I can make it produce the correct link by making the contact url setting be mailto:support@intfiction.org, but it both shows the mailto to the user and it linkifies it.
Can the contact url setting be change to support email addresses directly, leaving them unlinked like it would if it were displaying the contact email instead?
Thanks for the PR. Misusing the contact_url to solve your particular problem doesn’t feel right to me.
Wouldn’t it be easier to whitelist the email address used for sending new version emails? You can use the auto_generated_whitelist site setting for that.
Hi there!
You were mentioning the possibility to have this for the contact url when it contains an email address: <a href="mailto:alice@example.com" target="_blank">alice@example.com</a>
Is it something planned? RIght now I’m using mailto, but as @gerhard mentioned it, it’s not pretty