# Links with "mailto" broken by prepended "http://"

**URL:** <https://meta.discourse.org/t/links-with-mailto-broken-by-prepended-http/166564>\
**Category:** Bug\
**Created:** [October 7, 2020, 4:27pm UTC](https://meta.discourse.org/t/links-with-mailto-broken-by-prepended-http/166564 "2020-10-07T16:27:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bts/32/184556_2.png) [@bts](https://meta.discourse.org/u/bts)\
**Post date:** [October 7, 2020, 4:27pm UTC](https://meta.discourse.org/t/links-with-mailto-broken-by-prepended-http/166564/1 "2020-10-07T16:27:05Z")

</div>

When I insert link (via cmd-K) and add a mailto link, it prepends `http://` which breaks the link.

Example: [email me here](http://mailto:email@example.com)

I entered: `mailto:email@example.com`

But the generated url in the markdown is: `http://mailto:email@example.com/`

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [October 8, 2020, 11:16am UTC](https://meta.discourse.org/t/links-with-mailto-broken-by-prepended-http/166564/5 "2020-10-08T11:16:35Z")

</div>

Thanks, should be fixed by:

[https://github.com/discourse/discourse/commit/85200960435959e24f60fd4f3bc63b71f8663ec9](https://github.com/discourse/discourse/commit/85200960435959e24f60fd4f3bc63b71f8663ec9)

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [October 8, 2020, 11:16am UTC](https://meta.discourse.org/t/links-with-mailto-broken-by-prepended-http/166564/6 "2020-10-08T11:16:38Z")

</div>


