Last modified: 2011-10-18 15:30:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33681, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31681 - Special:Cite displays protocol relative URLs if $wgServer is relative
Special:Cite displays protocol relative URLs if $wgServer is relative
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 31799 (view as bug list)
Depends on:
Blocks: 20342
  Show dependency treegraph
 
Reported: 2011-10-13 22:27 UTC by LordAndrew
Modified: 2011-10-18 15:30 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description LordAndrew 2011-10-13 22:27:57 UTC
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?
Comment 1 db [inactive,noenotif] 2011-10-14 17:13:47 UTC
There is {{canonicalurl:}}, but when visiting Special:Cite over https there should a https link and not a http link
Comment 2 Helder 2011-10-14 17:52:14 UTC
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
Comment 3 Brion Vibber 2011-10-14 21:31:52 UTC
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).
Comment 4 Raimond Spekking 2011-10-15 19:48:02 UTC
Per above comment changed to canonical URL: r99905
Comment 5 Raimond Spekking 2011-10-18 15:30:29 UTC
*** Bug 31799 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links