Last modified: 2014-02-12 23:53:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36126, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34126 - Using search box on m.wikipedia in a non-mobile browser redirects to normal site
Using search box on m.wikipedia in a non-mobile browser redirects to normal site
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-01 21:38 UTC by Andrew Gray
Modified: 2014-02-12 23:53 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Gray 2012-02-01 21:38:24 UTC
(Apologies if this is in the wrong section - I haven't used Bugzilla in quite a while.)

This involves the en.m.wikipedia.org site, checked in a variety of non-mobile browsers (Firefox 9 under Ubuntu, Firefox 9 and IE 7 under Windows XP).

* If I type a valid page title (eg, "fish") into the search box, wait for the dropdown, and click on it, it sends me to the "fish" article on the mobile site (en.m.wp)

* If I hit enter after typing, rather than using the autocomplete dropdown, it sends me to the "fish" article in the regular site (en.wp)

* If I type in something that doesn't match as a page title - "fish fish" - and hit enter, it sends me to the search results page on the mobile site (en.m.wp)

The second should probably go straight to the article on en.m.wp - if the user's reading the mobile site, they probably want to stay there!

I'm not quite sure what's going on here, or why it *doesn't* seem to happen when using a mobile device.
Comment 1 Tomasz Finc 2012-02-01 22:24:25 UTC
That's a nasty inconsistency. We'll put this into our backlog
Comment 2 Jon 2012-02-14 09:43:13 UTC
Note: This is because when hitting enter this submits the form which currently navigates the user to
http://en.m.wikipedia.org/w/index.php?search=fish
which redirects to the main site.
Comment 3 Arthur Richards 2012-03-06 23:26:27 UTC
It seems Special:Search wasn't properly handled in the beforePageRedirect hook invocation in MobileFrontend. I added proper handling in r113199, which seems to resolve the issue locally.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links