Page MenuHomePhabricator

Special:Search is empty on mobile if there is no search term
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

Scenario 1, empty search

  1. On mobile web, place the cursor in the search box.
  2. Tap “Search” or “Enter”on the keyboard (the label for the enter key changes on some touchscreen platforms like iOS).

Scenario 2, switch from desktop

  1. On desktop web, do an empty search.
  2. Arrive at Special:Search, notice that it has selectors for advanced searching and for searching other namespaces.
  3. Tap Mobile view at the bottom of the page.

Scenario 3, explicitly visit Special:Search

  1. In mobile web with AMC, open the burger menu
  2. Tap Special Pages
  3. Tap Search

What happens?:
I get an empty page with just the title “Search”.
E.g. https://en.m.wikipedia.org/w/index.php?search=&title=
https://en.m.wikipedia.org/wiki/Special:Search

What should have happened instead?:
I expect a page with a search box and additional selectors for namespaces, other advanced search options, and sort-by options. Or at least a message saying to switch to desktop view. Or, if I have arrived there from a null-search, a message saying “There were no results matching the query.”

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
Wikimedia wikis (tested on English Wikipedia). Safari/iOS, and Edgium/Windows. Similar behaviour is observed on desktop web with useskin=Minerva, except sometimes (?) I see the marching dots like it's starting to load the selector widgets.

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript

Noting that we are planning on eventually using the current desktop improvements version of search on mobile which contains this functionality, but there are a few blockers still remaining. Current timeline is around July 2022.

@ovasileva I don't think that works impacts this particular ticket. I think the problem described in this ticket is the search elements that are intentionally hidden on mobile on the special page (don't remember why we hide them).

https://en.m.wikipedia.org/wiki/Special:Search shows:

Screen Shot 2022-02-09 at 8.35.56 AM.png (546×2 px, 46 KB)

With user style overrides it could show this:

Screen Shot 2022-02-09 at 8.36.22 AM.png (660×2 px, 70 KB)