Posting Skype links is impossible

When trying to post a skype link in such way:

[Skype link](skype:?chat&blob=RandomLongNumbersAndCharacters)

the result becomes an <a> without href.

Here’s an example.
Skype link

This cannot even be worked around by using the <a></a> link notation.

2 Likes

Yes, this is on purpose. Some URL schemes can effectively execute code on the computer when you click on them, so the links are stripped out if the scheme isn’t whitelisted.

3 Likes

How do you whitelist a scheme, then? I haven’t found anything in the settings.

1 Like

An extension point is needed in Discourse.Markdown's urlAllowed function.

https://github.com/discourse/discourse/blob/dbb4491bc385929d09e09d6575a2836831b9f0cf/app/assets/javascripts/discourse/lib/markdown.js#L222

1 Like

This might not be the best place to ask this, but after changing the JS and recompiling the assets, nothing changes. The old assets are still used and even if I overwrite the old assets with the new ones, Skype links are still accessible. I did check in multiple browsers and made sure that my browser was using the new version of the JS.

Any tips/ideas?