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

--- Comment #13 from Roan Kattouw <roan.katt...@gmail.com> 2011-11-01 12:22:59 
UTC ---
(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?

-- 
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