That's brilliant - thanks Rick. Our wiki is accessible internally via HTTP and externally via HTTPS and this was causing problems for us creating links to functions on the same server but outside the wiki. {{SERVER}} solves that problem nicely :-)
Cheers,
Al.
-----Original Message----- From: Rick DeNatale [mailto:rick.denatale@gmail.com]
Is there a way to refer to the index file or the host-path of the current webpage?
Try {{SITENAME}} or {{SERVER}}
Alistair Johnson wrote:
That's brilliant - thanks Rick. Our wiki is accessible internally via HTTP and externally via HTTPS and this was causing problems for us creating links to functions on the same server but outside the wiki. {{SERVER}} solves that problem nicely :-)
This may cause internal caching problems if the parser cache is on (default in 1.4 and higher is on), since the rendered HTML will be saved and served out again to other visitors with the same preferences.
To make sure incorrect pages aren't served, either disable the parser cache ($wgEnableParserCache = false) or hack up User::getPageRenderingHash() to include an HTTP vs HTTPS marker.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org