Last modified: 2013-07-24 09:49:39 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 T53900, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51900 - Search box deletes part of what the user types and go to the wrong page
Search box deletes part of what the user types and go to the wrong page
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-23 18:30 UTC by Helder
Modified: 2013-07-24 09:49 UTC (History)
5 users (show)

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


Attachments
Screencast (360.30 KB, video/webm)
2013-07-23 18:43 UTC, Helder
Details

Description Helder 2013-07-23 18:30:27 UTC
I've experienced this problem for a long time now (at least one year!), but usually I'm not able to reproduce it. The steps are more or less as follows:

1) Open the following page in a new (anonymous) window, using Google Chrome (tried with version 28.0.1500.71):
https://en.wikipedia.org/wiki/Special:BlankPage?uselang=en
2) Click in the search box
3) Type "Special:Prefix" and wait for the list of suggestions
4) Press the down arrow to select the first suggestion, which is "Special:PrefixIndex". This will change the content of the search field to this title.
5) Type "/A" after to get "Special:PrefixIndex/A" and press ENTER
At this point, I'm taken to the page
https://en.wikipedia.org/wiki/Special:PrefixIndex
instead of what I want:
https://en.wikipedia.org/wiki/Special:PrefixIndex/A
Comment 1 Helder 2013-07-23 18:43:44 UTC
Created attachment 12935 [details]
Screencast
Comment 2 Michael M. 2013-07-24 08:34:42 UTC
I can't reproduce this, but I can reproduce a very similar behaviour with a different search using Firefox 10:

1. Go to https://en.wikipedia.org/wiki/Special:BlankPage?uselang=en (or any other page)
2. Focus the search box.
3. Type "down".
4. Press the down arrow to select "Download".
5. Type ":".
6. Press ENTER *quickly*.

This removes the colon (like the "/A" is removed in the screencast) and takes you to https://en.wikipedia/wiki/Download.

If you wait some time before you press ENTER in step 6, you will correctly be sent to http://dumps.wikimedia.org/.
Comment 3 Michael M. 2013-07-24 08:49:02 UTC
I was now able to reproduce the original example. This also happens in Monobook skin, so this bug is MediaWiki core, probably in https://git.wikimedia.org/blob/mediawiki%2Fcore.git/e617dc6c8f2ce1d867ddadcd4bc3de098a84ff07/resources%2Fjquery%2Fjquery.suggestions.js#L409: When you press ENTER and there is still a selected suggestion, this suggestion will be used instead of what you entered in the search box.

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


Navigation
Links