Page MenuHomePhabricator

Searching nonexistent category gives odd display
Closed, ResolvedPublic

Description

Author: nick_tarleton

Description:
If you type a nonexistent category page in the search box and hit Enter, you see
"You can or put up a request for it" (without the "create this article" link),
and at the bottom it'll say the search page you're looking at is in that
category. I suppose SpecialSearch.php is missing a colon somewhere.


Version: unspecified
Severity: normal
OS: Linux
URL: http://en.wikipedia.org/wiki/Special:Search?search=Category%3Aqwertyuiop&go=Go

Details

Reference
bz3352

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:48 PM
bzimport set Reference to bz3352.
bzimport added a subscriber: Unknown Object (MLST).

http://en.wikipedia.org/w/index.php?
title=MediaWiki:Nogomatch&diff=22525509&oldid=22062245

gangleri wrote:

search [[en:Special:Allmessages]] for MediaWiki:Nogomatch

It seams that the colon should be added also in CVS and or HEAD. Else image and
category pages would break other wiki's / projects.

Regards Reinhardt [[user:gangleri]]

It's in the code as far as i know

includes/SpecialSearch.php: $wgOut->addWikiText( wfMsg('nogomatch', ":$term" ) );
extensions/LuceneSearch.php: $wgOut->addWikiText( wfMsg('nogomatch', ":" .
$t->getPrefixedText() ) );

gangleri wrote:

related to Nogomatch:

( http://la.wiktionary.org/ ) bug 3328: Nogomatch parameter $1 returns
extraneous colon

Restored bug from flood attack.

robchur wrote:

This would have been resolved when the whole "nogomatch" mess was cleaned up and
"noexactmatch" was introduced.