Page MenuHomePhabricator

Allow setting a default tab to be shown on "Special:Search"
Open, NormalPublic

Description

Setup

  • MediaWiki 1.31+

References

Feature request

This is a feature request for MediaWiki core though this will also help extensions. Earlier versions as indicated above do not have this feature either however I am just mentioning supported versions of MediaWiki here.

While it is possible to set namespace to be searched by default with $wgNamespacesToBeSearchedDefault it is not possible to set a default for the search tabs/sections to be shown by default. Thus having some method (e.g. hook) in [0] to set a default profile would made things easier for users and administrators and moreover also allow extension defined tabs to be set by default - not just MediaWiki core.

[0] https://github.com/wikimedia/mediawiki/blob/master/includes/specials/SpecialSearch.php#L206-L257

Event Timeline

Kghbln created this task.Jun 29 2019, 5:49 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 29 2019, 5:49 PM
Kghbln renamed this task from Allow setting a default tab to be serached on Special:Search to Allow setting a default tab to be shown on "Special:Search".Jun 29 2019, 5:50 PM
Kghbln added a subscriber: mwjames.Jun 29 2019, 5:53 PM

This seems to be about the MediaWiki-Search code base, hence adding the MediaWiki-Search project tag.

EBernhardson triaged this task as Normal priority.Jul 11 2019, 5:05 PM
EBernhardson moved this task from needs triage to UI tickets on the Discovery-Search board.