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

--- Comment #14 from billinghurst <billinghu...@gmail.com> 2011-11-01 12:44:10 
UTC ---
(In reply to comment #13)
> (In reply to comment #12)
> > Is there the ability to update {{canonicalurl}} to generate an absolute url
> > that is protocol relative to the login type?  Alternatively if that is
> > problematic, can there be (yet) another parser function that undertakes the
> > task to generate the url relative to the user?  Having to do those sorts of
> > hacks ''ad infinitum'' is surely just courting disaster against a simple
> > ability especially as that {{canonicalurl}} will get used by the lazy, or
> > someone will write templates to get around the issue. Thanks.
> 
> What do you mean, exactly? If you want a protocol-relative URL, use
> {{fullurl:}}. This seems to be what you mean with "protocol relative to the
> login type". There isn't a parser function that outputs http:// URLs for 
> people
> viewing over http and https:// URLs for people viewing over HTTPS because that
> would mean we'd have to split the parser cache, but this is exactly what
> protocol-relative URLs are for.
> 
> What do you mean with a "URL relative to the user"? Does that mean generating
> fully-qualified URLs, e.g. for e-mails that use https if the user logs in over
> https and http otherwise? Would this be based on the not-yet-existing "Always
> use HTTPS when I'm logged in" preference?

I meant what you explained in the first paragraph.

Sometimes it is easiest and more appropriate to display a url. To display a
full protocol relative url is problematic, so for
https://en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=3501464

I cannot code 
* {{fullurl:Wikisource:Sandbox|oldid=3501464}} as it doesn't give a protocol
* {{canonicalurl:Wikisource:Sandbox|oldid=3501464}} and takes me out of secure
protocol

I have to code it as
* [{{fullurl:Wikisource:Sandbox|oldid=3501464}}
{{fullurl:Wikisource:Sandbox|oldid=3501464}] ;
* [//en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=3501464
//en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=3501464]

It would be fantastic if I could code either
* {{canonicalurl:Wikisource:Sandbox|oldid=3501464}}; or
* {{protocolrelativeurl:Wikisource:Sandbox|oldid=3501464}}
and they could exhibit the protocol relative urls
http://en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=3501464
https://en.wikisource.org/w/index.php?title=Wikisource:Sandbox&oldid=3501464
depending on how I login.

If it relates to the second paragraph, then maybe I don't comprehend what
happens with http:// after the change. I just see that I keep getting forced
into http:// in so many places and don't see an easy (lazy) solution.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to