Page MenuHomePhabricator

MediaWiki's title search widget sorts redirects in the incorrect order
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

  1. Go to an article on the English Wikipedia
  2. Open link inspector
  3. Search for "Main page"

Expected:

  • "Main Page" is first result

Actual:

  • "Home page" is the first result

The reason I say that I expect "Main Page" to be the first result is that if I inspect the API query that VisualEditor is using, it shows "Main Page" is the first result in the redirect set at the start. I assume VisualEditor is not handling these redirects correctly; search for "Main Page" (including the quotes) in the response to see what I mean.

Details

Event Timeline

Change 286280 had a related patch set uploaded (by Esanders):
Give redirects a sort index in title widget

https://gerrit.wikimedia.org/r/286280

Esanders set the point value for this task to 1.
Esanders subscribed.

After fix:

pasted_file (413×854 px, 105 KB)

Jdforrester-WMF renamed this task from VisualEditor link inspector sorts results in incorrect order to MediaWiki's title search widget sorts redirects in the incorrect order.May 2 2016, 3:21 PM
Jdforrester-WMF closed this task as Resolved.
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF triaged this task as High priority.

Change 286280 merged by jenkins-bot:
Give redirects a sort index in title widget

https://gerrit.wikimedia.org/r/286280