Page MenuHomePhabricator

"Wikipedia" is now a namespace alias for the "Project" meta-namespace on wikimediafoundation.org
Closed, ResolvedPublic

Description

Until recently, the syntax "[[wikipedia:Foo]]" on wikimediafoundation.org would render a link target similar to https://en.wikipedia.org/wiki/Foo.

Now, "Wikipedia:" is apparently considered a namespace alias of wikimediafoundation.org's "Project" namespace. Consequently, "[[wikipedia:Foo]]" now leads to https://wikimediafoundation.org/wiki/Wikimedia:Foo. This behavior is wrong and needs to be fixed.

Example page that currently shows the wrong behavior: https://wikimediafoundation.org/w/index.php?title=Wikimedia:Sandbox&oldid=82691.


Version: unspecified
Severity: normal

Details

Reference
bz38257

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:01 AM
bzimport set Reference to bz38257.

(In reply to comment #1)

(In reply to comment #0)

Until recently

How recently?

In the last few days, I guess.

I believe this change by Reedy is to blame: https://gerrit.wikimedia.org/r/gitweb?p=operations/mediawiki-config.git;a=blobdiff;f=wmf-config/InitialiseSettings.php;h=05036b6ae9a8e3c0a31ee3def194a397101ba175;hp=5fd99ba0c34f6da16b83234ae25b842cb04effcd;hb=4ab25b404790e7bc5f895be09087472e9256e38d;hpb=47234b4efbf8bfc611147eb9f95c63ba85a0cd69.

Specifically:


  • 'wikipedia' => array( 'Wikipedia' => NS_PROJECT ),

+ 'wiki' => array( 'Wikipedia' => NS_PROJECT ),

I daren't even ask why we've got usages of 'wiki' and 'wikipedia' in the config. I'll revert that line in a little while..

(In reply to comment #4)

Reverted

Thanks for the quick response. :-)

Reedy also ran refreshLinks.php on foundationwiki to fix up some of the breakage.

I consider this bug fixed ("[[wikipedia:Foo]]" now works as it did previously). There's likely a separate bug to be had about wiki/wikipedia strangeness in the Wikimedia configuration files, but someone else can deal with that.