Last modified: 2011-04-30 01:21:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25842, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23842 - $wgNamespaceAliases cannot alias NS_MAIN
$wgNamespaceAliases cannot alias NS_MAIN
Status: RESOLVED DUPLICATE of bug 22940
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.15.x
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-08 17:58 UTC by Dan Barrett
Modified: 2011-04-30 01:21 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Barrett 2010-06-08 17:58:32 UTC
It appears to be impossible to alias the main namespace. Try this:

$wgNamespaceAliases = array(
 'Foo' => NS_MAIN,
 'Foo_talk' => NS_TALK,
);

The alias "Foo_talk" works, but "Foo" is not recognized as a namespace in links, URLs, or search.
Comment 1 Chad H. 2010-06-10 16:34:26 UTC
WORKSFORME in trunk.
Comment 2 Chad H. 2010-08-30 14:06:50 UTC

*** This bug has been marked as a duplicate of bug 22940 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links