As a user, I often want to search for something without leaving my current page. To do this, I type in the search bar, and middle-click or ctrl-click on the result(s) in the autocomplete-dropdown, which opens the link(s) in a new tab.
There is an additional gadget installed on some wikis (e.g. commons, enwiki) that enables a user to ctrl-click (not middle-click) on the magnifying-glass-icon, or to use ctrl-enter, in order to open the Advanced Search results page in a new tab. This acts the same as ctrl-clicking the bottom-item "Containing...
" via the searchsuggest widget (e.g. enwiki default).
Whichever widget/code we use, Ctrl-click or middle-click should continue to work properly (i.e. open the link in a new tab) for individual search results, AND ideally be made to work for Ctrl/middle-clicking on the magnifying-glass-icon, or using ctrl-enter.
Of the existing widgets:
- searchSuggest:
- clicking: Works for results, Broken for icon.
- e.g. https://de.wikipedia.org/wiki/Wikipedia:Hauptseite?useskin=vector
- TitleOptionWidget:
- clicking: Works for results, No icon
- e.g. https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&veaction=edit
- SearchOverlay:
- clicking: Works for middle-clicking results, Broken for Ctrl-clicking results, Broken for icon.
- e.g. https://de.wikipedia.org/wiki/Wikipedia:Hauptseite?useskin=minerva
- WMTypeAhead:
- clicking: Broken for both
- e.g. https://www.wikipedia.org/