I'm sure there is a better way but I have a hack that'll do it.  Drop
this in LocalSettings.php:

$wgHooks['SpecialSearchGo'][] = function($p) {
    $p[0] = null;
    return true;
};

Tested against master branch so your results may vary.

Nik Everett

On Fri, Sep 6, 2013 at 5:00 PM,  <[email protected]> wrote:
> Where can I configure my wiki's top right Search box to do only the
> traditional "Search" behavior (go to search results page) and _not_ do
> the "Go" behavior (go to an article if its title matches)?
>
> The "Go" action may be appropriate for wiki's that aim wide and
> shallow at everything under the sun. My wiki however aims deep and
> narrow at one topic. I find the "Go" search behavior gets in the way
> of showing search results.
>
> Here's what I've tried so far:
>
> $wgVectorUseSimpleSearch=true;   // makes the top right Search box
> show a simple search icon, which I like, instead of the "Search" and
> "Go" buttons, but it does the "Go" function.
>
> $wgVectorUseSimpleSearch=false;   // shows both the "Search" and "Go" buttons.
>
> I want to show only the search _icon_ and have it do only the
> _traditional_ Search behavior. Where can I configure this?
>
> Thanks,
>
> Roger
> Teflpedia.com
> Mediawiki 1.20.2
>
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to