[Mediawiki-l] Redirecting without hard-coding the wiki name?

Daniel Barrett danb at VistaPrint.com
Wed Apr 16 17:08:35 UTC 2008


What's the right way to redirect to an article in the "project"
namespace without hard-coding the wiki name? Neither {{ns:project}} nor
{{SITENAME}} works:

#REDIRECT [[{{SITENAME}}:My page]]
#REDIRECT [[{{ns:project}}:My page]]

Instead of accomplishing a redirect, they merely render the text:

1.	REDIRECT MyWikiName:My page

as if the "#" were a numbered list symbol.

Thanks,
DanB


More information about the MediaWiki-l mailing list