# Non-http(s) urls in posts not hyperlinking properly

**URL:** https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343
**Category:** Support
**Created:** [July 15, 2016, 4:32am UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343 "2016-07-15T04:32:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Whitestrake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/whitestrake/32/59617_2.png) [@Whitestrake](https://meta.discourse.org/u/Whitestrake)
#### Post date: [July 15, 2016, 4:32am UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/1 "2016-07-15T04:32:27Z")

</div>

Hi guys,

On a newly-installed Discourse instance, I’m trying to hyperlink a Mumble server in a post body, which takes the form `mumble://example.com`.

I’ve tried with `<a>` tags and `[markdown](links)`. Inspecting the post after it goes up, it looks like it’s not keeping the `href` in the `<a>` tag, as demonstrated in this example link which should lead to mumble://example.com.

I’m fairly new to running Discourse so I’m not sure if there’s a setting for security purposes perhaps that could be stripping the nonstandard protocol links? Possibly of note - the forum in question is running in a subfolder and seems to be fully functional, and the `mumble://` link is to the same domain as the forum itself, as the Murmur server is on the same instance.

Any direction would be much appreciated, cheers.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [July 15, 2016, 5:06am UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/2 "2016-07-15T05:06:21Z")

</div>

Unrecognised URL schemes are not supported at present, however there’s a feature in the works to loosen these restrictions, so keep an eye out.

---

<div class="post-metadata">

### Author: ![alldritt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alldritt/32/119516_2.png) [@alldritt](https://meta.discourse.org/u/alldritt)
#### Post date: [July 16, 2016, 4:33am UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/3 "2016-07-16T04:33:16Z")

</div>

We are trying to use the [`applescript` URL scheme](http://www.macosxautomation.com/applescript/linktrigger/) for code blocks in our Discourse forum and a solution for this issue would be very helpful.

---

<div class="post-metadata">

### Author: ![Whitestrake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/whitestrake/32/59617_2.png) [@Whitestrake](https://meta.discourse.org/u/Whitestrake)
#### Post date: [July 16, 2016, 2:19pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/4 "2016-07-16T14:19:51Z")

</div>

Thanks for the heads up. Is there a PR or something I could follow?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [July 17, 2016, 10:55pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/5 "2016-07-17T22:55:42Z")

</div>

> [@alldritt](#):
>
> a solution for this issue would be very helpful.

That would be provided in the post above yours.

> [@Whitestrake](#):
>
> Is there a PR or something I could follow?

No, it’s just part of the intended featureset for 1.7, as described in #releases specifically, “Support alternate URL schemas if allowed such as `ftp://`, `steam://` etc”.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [October 24, 2016, 7:11pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/6 "2016-10-24T19:11:52Z")

</div>

Support for more url schemes has been added! There’s a new setting called “allowed href schemes” where you can add a list of schemes to allow in links.

 ![](https://global.discourse-cdn.com/meta/original/3X/7/2/725d959de433d0c31232fe1f9220a61dc00a8bb1.png)

---

<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: [October 24, 2016, 7:39pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/7 "2016-10-24T19:39:25Z")

</div>

Testing:

Hey guys add me on [Steam](steam://friends/add/76561197988628148) to play some [Dota 2](steam://store/570) 🎮

EDIT: It works!

For better use:

- `steam://friends/add/76561197988628148` for adding someone

- `steam://store/570` for a game page

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 24, 2016, 7:45pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/8 "2016-10-24T19:45:10Z")

</div>

Umm…nope. First link went to user search page. Second link went to store main page.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [October 24, 2016, 7:47pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/9 "2016-10-24T19:47:29Z")

</div>

Both work for me. Which browser/OS are you on?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 24, 2016, 7:50pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/10 "2016-10-24T19:50:55Z")

</div>

Me? Chrome 53, Windows 10 Pro.

Both links popped up this dialog where I clicked Launch Application:

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

---

<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: [October 24, 2016, 7:51pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/11 "2016-10-24T19:51:45Z")

</div>

@jomaxro I had wrong links, try now!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 24, 2016, 7:53pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/12 "2016-10-24T19:53:11Z")

</div>

Add friend isn’t opening Steam at all now, Dota 2 link is working.

---

<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: [October 24, 2016, 7:54pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/13 "2016-10-24T19:54:51Z")

</div>

Did you add me manually?

 ![](https://global.discourse-cdn.com/meta/original/3X/9/c/9c6f3d869cdf9f539bf026fd1df0b3efb7b35086.png)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 24, 2016, 7:56pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/14 "2016-10-24T19:56:04Z")

</div>

Not that I’m aware of! I was never given an option to friend you…that’s wierd.

---

<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: [October 24, 2016, 7:57pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/15 "2016-10-24T19:57:00Z")

</div>

I used a too agressive option 😜

So it works, and now we are friends for life.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [October 24, 2016, 8:00pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/16 "2016-10-24T20:00:49Z")

</div>

As long as the external protocol request happens for the given url, then it’s working. And making new friends is pretty cool too. 💚

---

<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: [October 24, 2016, 8:29pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/17 "2016-10-24T20:29:21Z")

</div>

@neil the raw version should work too..

steam://store/570

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [October 24, 2016, 8:30pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/18 "2016-10-24T20:30:54Z")

</div>

Yeah, I forgot about that case. Will handle it next.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [October 27, 2016, 7:41pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/19 "2016-10-27T19:41:16Z")

</div>

We decided not to handle that case (raw text) since it’s tricky to get site settings into an engine like [auto-link](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/engines/discourse-markdown/auto-link.js.es6).

---

<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: [October 27, 2016, 7:50pm UTC](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343/20 "2016-10-27T19:50:21Z")

</div>

Maybe we can postpone until commonmark move?

> **[6.7Autolinks - CommonMark Spec](https://spec.commonmark.org/0.25/#autolink)**
>
> A URI autolink consists of \<, followed by an absolute URI not containing \<, followed by \>. It is parsed as a link to the URI, with the URI as the link’s label.

[Next page](https://meta.discourse.org/t/non-http-s-urls-in-posts-not-hyperlinking-properly/47343.md?page=2)
