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 added a project: Cite.Via ConduitNov 21 2014, 11:57 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz31681.
bzimport created this task.Via LegacyOct 13 2011, 10:27 PM
duplicatebug added a comment.Via ConduitOct 14 2011, 5:13 PM

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

He7d3r added a comment.Via ConduitOct 14 2011, 5:52 PM

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.Via ConduitOct 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).

Raymond added a comment.Via ConduitOct 15 2011, 7:48 PM

Per above comment changed to canonical URL: r99905

Raymond added a comment.Via ConduitOct 18 2011, 3:30 PM
  • Bug 31799 has been marked as a duplicate of this bug. ***

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.