Page MenuHomePhabricator

fullurl should not output proto-relative url
Closed, DeclinedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
Enter {{fullurl:{{FULLPAGENAME}}|useskin=monobook}} onto an wikipage
Same with {{SERVER}} and {{filepath:}}

What happens?:
An proto-relative URL is generated.

What should have happened instead?:
An URL with the https or http protocol should have been created according to
https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/USZRHK5NJRHSFBWD6Q6RZQGS2R4E4BZ7/

Software version (skip for WMF-hosted wikis like Wikipedia): WMF

Other information (browser name/version, screenshots, etc.): Irrelevant, server side error.

Related: T312666

Event Timeline

Tgr changed the task status from Duplicate to Declined.Jun 22 2023, 9:04 AM
Tgr subscribed.

Not really a duplicate (one could argue fullurl: should use PROTO_CANONICAL) but IMO outputting a protocol-relative URL is the correct behavior if the site is using protocol-relative URLs (which Wikimedia wikis don't and their configuration should be adjusted to reflect that, but that's a separate issue).