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.
mpalmer
(Matt Palmer)
2016 年 7 月 15 日午前 5:06
2
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.
「いいね!」 5
alldritt
(Mark Alldritt)
2016 年 7 月 16 日午前 4:33
3
We are trying to use the applescript
URL scheme for code blocks in our Discourse forum and a solution for this issue would be very helpful.
Thanks for the heads up. Is there a PR or something I could follow?
mpalmer
(Matt Palmer)
2016 年 7 月 17 日午後 10:55
5
That would be provided in the post above yours.
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”.
「いいね!」 4
neil
(Neil Lalonde)
2016 年 10 月 24 日午後 7:11
6
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.
「いいね!」 5
Falco
(Falco)
2016 年 10 月 24 日午後 7:39
7
Testing:
Hey guys add me on Steam to play some Dota 2
EDIT: It works!
For better use:
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
2016 年 10 月 24 日午後 7:45
8
Umm…nope. First link went to user search page. Second link went to store main page.
neil
(Neil Lalonde)
2016 年 10 月 24 日午後 7:47
9
Both work for me. Which browser/OS are you on?
jomaxro
(Joshua Rosenfeld)
2016 年 10 月 24 日午後 7:50
10
Me? Chrome 53, Windows 10 Pro.
Both links popped up this dialog where I clicked Launch Application :
「いいね!」 2
Falco
(Falco)
2016 年 10 月 24 日午後 7:51
11
@jomaxro I had wrong links, try now!
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
2016 年 10 月 24 日午後 7:53
12
Add friend isn’t opening Steam at all now, Dota 2 link is working.
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
2016 年 10 月 24 日午後 7:56
14
Not that I’m aware of! I was never given an option to friend you…that’s wierd.
Falco
(Falco)
2016 年 10 月 24 日午後 7:57
15
I used a too agressive option
So it works, and now we are friends for life.
「いいね!」 4
neil
(Neil Lalonde)
2016 年 10 月 24 日午後 8:00
16
As long as the external protocol request happens for the given url, then it’s working. And making new friends is pretty cool too.
「いいね!」 6
@neil the raw version should work too…
steam://store/570
neil
(Neil Lalonde)
2016 年 10 月 24 日午後 8:30
18
Yeah, I forgot about that case. Will handle it next.
「いいね!」 5
neil
(Neil Lalonde)
2016 年 10 月 27 日午後 7:41
19
We decided not to handle that case (raw text) since it’s tricky to get site settings into an engine like auto-link .
「いいね!」 1
Falco
(Falco)
2016 年 10 月 27 日午後 7:50
20
Maybe we can postpone until commonmark move?
http://spec.commonmark.org/0.25/#autolink
「いいね!」 3