Special:Cite displays protocol relative URLs if $wgServer is relative
Closed, ResolvedPublic

Description

Author: reachouttothetruth

Description:
Special:Cite is using protocol relative URLs for the permanent link. See [[Special:Cite/Train]] for example. Since these links are intended to be distributed outside of the browser, it should instead use the canonical protocol.

I'm not sure how that could be done though. SpecialCite uses a very strange localization method. From what I can tell, the message seems to come from the cite_text file, which uses {{fullurl}} to generate the url. {{fullurl}} can't force the canonical protocol, can it?


Version: unspecified
Severity: normal

bzimport set Reference to bz31681.
bzimport added a subscriber: Unknown Object (MLST).

There is {{canonicalurl:}}, but when visiting Special:Cite over https there should a https link and not a http link

This problem was also reported[1] on Portuguese Wikipedia some days ago and Roan fixed it[2] by using {{canonicalurl:}}. But this indeed doesn't solve the problem of having http links for users visiting [[Special:Cite]] on secure server.

[1] https://pt.wikipedia.org/w/index.php?diff=27155238&oldid=27143056#URLs_relativos
[2] https://pt.wikipedia.org/w/index.php?diff=27155115&oldid=19479266

brion added a comment.Oct 14 2011, 9:31 PM

Seems sensible enough to use the canonical URL; ideally that should change to https: at some point in the future (all non-encrypted traffic in general is kinda unsafe and should be deprecated, especially for interactive services).

Per above comment changed to canonical URL: r99905

  • Bug 31799 has been marked as a duplicate of this bug. ***

Add Comment