Page MenuHomePhabricator

Add matrix: to allowed protocol list in MediaWiki core
Closed, ResolvedPublic

Event Timeline

On second thought, it would probably make more sense to add it to MediaWiki core.

Change 873866 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@master] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/873866

Peachey88 renamed this task from Add matrix: to allowed protocol list for Wikimedia wikis to Add matrix: to allowed protocol list in MediaWiki core.Dec 30 2022, 9:22 AM

Change 873866 merged by jenkins-bot:

[mediawiki/core@master] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/873866

Sorry, but as someone who has not even heard about this protocol before (Wikipedia article), I have to ask: what exactly will this change enable MediaWiki (or our editors) to do? Has this been discussed on-wiki somewhere?

EDIT: Oh, I see there's this: T186061: Evaluate Matrix / Element as the recommended chat system for Wikimedia.

In T326021#8492476, @Dcljr wrote:

I have to ask: what exactly will this change enable MediaWiki (or our editors) to do? Has this been discussed on-wiki somewhere?

matrix:whatever will work as an external link, both as a free link and when enclosed in single brackets. I'm not aware of any on-wiki discussions, but it seemed reasonable to me given the presence of irc:// and xmpp:.

Tgr closed this task as Resolved.EditedJan 1 2023, 2:46 AM
Tgr claimed this task.
Tgr added a project: User-notice.
In T326021#8492476, @Dcljr wrote:

Sorry, but as someone who has not even heard about this protocol before (Wikipedia article), I have to ask: what exactly will this change enable MediaWiki (or our editors) to do?

My use case is supporting non-browser-based clients in Template:Matrix-channel. See the Matrix.org meta page for background; Matrix is one of the best FLOSS alternatives (I'd argue the best FLOSS alternative) for Telegram, Slack etc, and has seen some community use.

Has this been discussed on-wiki somewhere?

I don't think this kind of change needs on-wiki discussion, although admittedly I didn't think about non-bracketed links; that seems slightly annoying (but not any more than some existing protocols like tel: or news:). Maybe the list of protocols recognized in bare URLs should be configurable separately. A quick search only finds one enwiki article which will be affected, though, so I don't think this will cause problems.

Should be mentioned in Tech News, though. Maybe something like Strings starting with <code>matrix:</code> will be recognized as [[m:Matrix.org|Matrix]] URLs by the parser.?

(FWIW matrix: is also one of the safelisted schemes since about a year ago, which I think mostly is what the defaults for $wgUrlProtocols are based on.)

Change 876059 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@REL1_39] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876059

Change 876059 merged by jenkins-bot:

[mediawiki/core@REL1_39] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876059

Change 876392 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@REL1_35] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876392

Change 876412 had a related patch set uploaded (by Reedy; author: Gergő Tisza):

[mediawiki/core@REL1_38] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876412

Change 876392 merged by jenkins-bot:

[mediawiki/core@REL1_35] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876392

Change 876412 merged by jenkins-bot:

[mediawiki/core@REL1_38] Add matrix: to $wgUrlProtocols

https://gerrit.wikimedia.org/r/876412