https://bugzilla.wikimedia.org/show_bug.cgi?id=41237

       Web browser: ---
             Bug #: 41237
           Summary: canonicalurl magic word always defaults to *showing*
                    insecure
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I've tested this in the Wikinews sandbox:
https://en.wikinews.org/wiki/Wikinews:Sandbox

If I put {{canonicalurl:Main Page}}, the displayed link states "http:// ..."
But, the actual provided link is https://

The problem came to light when trying to implement code to conditionally offer
a link to the secure version of the site.

I note there is bug 38875, asking for {{CANONICALSERVER}}; I'm none-to-fussed
how I can test for a page having been loaded over https://, a {{PROTOCOL}}
magic word would be nice, but labelling a link as http:// when it is https://
is just plain wrong.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to