Page MenuHomePhabricator

WikimediaIncubator: Links to Special:Search should redirect to using prefix: operator
Open, MediumPublic

Description

See [[voy:zh:Special:Search/foo]].


Version: unspecified
Severity: normal

Details

Reference
bz48670

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:21 AM
bzimport set Reference to bz48670.
bzimport added a subscriber: Unknown Object (MLST).

Since the Chinese Wikivoyage has been created, an alternative example would be:

http://aa.wikivoyage.org/wiki/Special:Search/Foo -> http://incubator.wikimedia.org/Wy/aa/Special:Search/Foo

Ideally, the link should point to http://incubator.wikimedia.org/wiki/Special:Search/Foo_prefix:Wy/aa/.

As a side note, this issue also affects other special pages, templates and categories that are treated differently in the MediaWiki context. The redirecting script should be modified accordingly in mediawiki-config (under missing.php in wmf-config) so that these exceptions can be handled.

This is probably better handled on the WikimediaIncubator side than the missing.php side - what the correct prefix is depends on a lot of wiki-specific config that isn't really available in the context of missing.php - ideally https://incubator.wikimedia.org/wiki/Wy/aa/Special:Search/Foo should redirect to http://incubator.wikimedia.org/wiki/Special:Search/Foo_prefix:Wy/aa/

(and ditto for https://incubator.wikimedia.org/wiki/Wy/aa/Template:Foo, https://incubator.wikimedia.org/wiki/Wy/aa/Module:Foo, https://incubator.wikimedia.org/wiki/Wy/aa/Category:Foo, etc.)