Page MenuHomePhabricator

Default option for pressing "Enter" in search box on Wikimedia Commons
Closed, DeclinedPublic

Description

See bug 17471. Basically, per consensus at http://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2009/02#Default_our_search_box_to_.22Search.22_instead_of_.22Go.22 the system was modified so that hitting return on the keyboard uses the "Search" function rather than "Go." This makes a lot of sense for an image database where you rarely know the particular name of something you're searching for.

However, it is annoying when you do know the specific title of the image you want. For instance, if you type "File:Wikipedia-logo.svg" in the search bar, it takes you to http://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=File%3AWikipedia-logo.svg&fulltext=Search rather than http://commons.wikimedia.org/wiki/File:Wikipedia-logo.svg. Clearly, in this instance your intention is to get to the file directly.

If possible, I would like, when hitting "Enter" in a search box, for queries without a namespace to default to the "Search" option as it is now, and queries with a namespace to be reverted back to using the "Go" option. This was brought up in the subsection "Comments" of the linked discussion and received general support, but was brushed off to the side as less important than the main issue being discussed and never raised again until now.


Version: unspecified
Severity: enhancement

Details

Reference
bz29069
TitleReferenceAuthorSource BranchDest Branch
[JS][Java] Mix in sample unit and raterepos/data-engineering/metrics-platform!7phuedxwork/phuedx/T310693main
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:38 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz29069.
bzimport added a subscriber: Unknown Object (MLST).

This doesn't sound like a site request so much as a feature request for the MW software.

(In reply to comment #1)

This doesn't sound like a site request so much as a feature request for the MW
software.

That's right, we'd have to support this in software first. Shouldn't be too hard though.

rd232 wrote:

Works for me: on Commons, File:Wikipedia-logo.svg in the search box + Enter goes direct to the file page, Fil:Wikipedia-logo.svg or just Wikipedia-logo.svg goes to search results.