# Support for magnet links

**URL:** https://meta.discourse.org/t/support-for-magnet-links/143558
**Category:** Feature
**Created:** [March 6, 2020, 10:09pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558 "2020-03-06T22:09:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![MentalNomad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalnomad/32/95159_2.png) [@MentalNomad](https://meta.discourse.org/u/MentalNomad)
#### Post date: [March 6, 2020, 10:09pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/1 "2020-03-06T22:09:04Z")

</div>

Is there an easy way to present a magnet link to a torrent in a way that renders as a clickable link for users?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 6, 2020, 10:13pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/2 "2020-03-06T22:13:16Z")

</div>

Adding `magnet` to the `allowed href schemes` site setting should work, did you try that?

---

<div class="post-metadata">

### Author: ![MentalNomad](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalnomad/32/95159_2.png) [@MentalNomad](https://meta.discourse.org/u/MentalNomad)
#### Post date: [March 6, 2020, 10:26pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/3 "2020-03-06T22:26:52Z")

</div>

Tried - it renders a blue link, but is not clickable and shows no link preview.

I logged out and back in after adding `magnet` to the allowed schemes, but did not restart anything. Is that necessary?

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/b/1b03c0bb8589c5e26fb7c9781795b5bd45e0baf7.png)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 6, 2020, 10:33pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/4 "2020-03-06T22:33:50Z")

</div>

The extraHrefMatchers mechanism in pretty-text.js.es6 doesn’t seem to permit query strings or schemes without a `://`…

In the meantime, you can paste the links in a code block for people to copy, e.g.:

```plaintext
magnet:?xt=urn:btih:e2467cbf021192c241367b892230dc1e05c0580e&dn=ubuntu-19.10-desktop-amd64.iso&tr=https%3A%2F%2Ftorrent.ubuntu.com%2Fannounce&tr=https%3A%2F%2Fipv6.torrent.ubuntu.com%2Fannounce

```

Let’s perhaps revisit this after IE is dropped.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 7, 2020, 9:25pm UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/5 "2020-03-07T21:25:06Z")

</div>

Easiest thing to do here would be to use

> [@Auto-Linkify Words](https://meta.discourse.org/t/linkify-words-in-post/82193):
>
> :exclamation:Discourse has a built-in feature called Watched Words which can [replicate most of the features](https://meta.discourse.org/t/watched-words-reference-guide/241735) of this theme component. Consider using that before installing this theme component. discourse2Summary Auto-Linkify Words allows you to automatically hyperlink certain words or patterns in your post with the desired destination URL.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-linkify-words](https://github.com/discourse/discourse-linkify-words)open_bookNew to Discourse Themes? [Beginner’s …](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

It may need a small contribution to support this

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 8, 2020, 3:15am UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/6 "2020-03-08T03:15:51Z")

</div>

> [@riking](#):
>
> Let’s perhaps revisit this after IE is dropped.

Preach, brother! That day cannot come soon enough! 🙏

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 8, 2020, 6:34am UTC](https://meta.discourse.org/t/support-for-magnet-links/143558/7 "2020-03-08T06:34:30Z")

</div>

Yep, it has a slight problem, seems to stop link detection at the `%`.
