Page MenuHomeMiraheze

Do not use protocol-relative URLs for external links
Closed, ResolvedPublic

Description

Please add "https" to these

$ mech-dump --links https://meta.miraheze.org/
//login.miraheze.org
//meta.miraheze.org
//www.mediawiki.org/
//twitter.com/miraheze

Indeed, the first three are on every wiki on miraheze.

Besides making them break when the page is saved offline, there are
other reasons too:
https://en.wikipedia.org/wiki/Wikipedia:Protocol-relative_URL
https://www.paulirish.com/2010/the-protocol-relative-url/
https://joonas.fi/2016/12/27/stop-using-protocol-relative-urls/

Event Timeline

Jidanni triaged this task as Low priority.Nov 23 2019, 02:59
Jidanni created this task.

Three are still there:

$ mech-dump --links https://meta.miraheze.org/|grep ^//
//login.miraheze.org
//twitter.com/miraheze
//www.mediawiki.org/

Also on https://meta.miraheze.org/wiki/ManageWiki#How_do_I_change_my_logo.2Ffavicon.3F

//static.miraheze.org/

is mentioned, and users are instructed to "delete the protocol http:" but not add https: ...

Three are still there:

$ mech-dump --links https://meta.miraheze.org/|grep ^//
//login.miraheze.org
//twitter.com/miraheze
//www.mediawiki.org/

Also on https://meta.miraheze.org/wiki/ManageWiki#How_do_I_change_my_logo.2Ffavicon.3F

//static.miraheze.org/

is mentioned, and users are instructed to "delete the protocol http:" but not add https: ...

The URL for the logo doesnt require a protocol.

Were saying dont, I havent tested what would happen but it may not work properly.

Zppix removed Zppix as the assignee of this task.Dec 12 2019, 16:27
Zppix subscribed.

Anything else left?

$ mech-dump --links https://meta.miraheze.org/|grep ^//
//login.miraheze.org
//twitter.com/miraheze
John subscribed.

If these are remaining links on Meta, wiki content is out of Phabricator’s purview.

Here's one that's on every wiki:
$ mech-dump --links https://abj.miraheze.org/|grep ^
login.miraheze.org