Last modified: 2012-08-05 21:27:47 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 T22190, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20190 - Suggestions/autocomplete in search box mis-capitalizes first letter
Suggestions/autocomplete in search box mis-capitalizes first letter
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 27411
  Show dependency treegraph
 
Reported: 2009-08-12 00:07 UTC by DMacks
Modified: 2012-08-05 21:27 UTC (History)
3 users (show)

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


Attachments

Description DMacks 2009-08-12 00:07:12 UTC
In the Search box on the left-hand column, I get a drop-down listing pages that begin with what I've typed. The suggestions have the first letter capitalized, per standard wikipedia technical standard that all article titles begin with a capital letter. The requirement appears to apply to the first *character* of the title, not the first *letter* (if there are preceding numbers or other characters). However, the dropdown suggestion list capitalizes the first letter, whatever position in the title it is. That's confusing, as there can be pages that differ solely by capitalization at that position: the dropdown lists two of the same, no clue which is which.

For example, en.wp has [[1,4-dichlorobenzene]] and [[1,4-Dichlorobenzene]] (one a redirect to the other for obvious sanity reasons!). If I type "1,4-dichl" in the search-box, the drop-down lists "1,4-Dichlorobenzene" and "1,4-Dichlorobenzene" (both of which take me to the capital-D page). I so the bug is that the autocapitalizer thingy converts "1,4-dichlorobenzene" to "1,4-Dichlorobenzene" when setting up the list of choices even though that "d" is not the first character.
Comment 1 Roan Kattouw 2009-08-12 08:02:52 UTC
This is not a bug.

The search suggestions box is smarter than you think: it does case-insensitive matching (so "1,4-dichl" matches both titles) and doesn't list redirect (so [[1,4-dichlorobenzene]], which redirects to [[1,4-Dichlorobenzene]], isn't listed).
Comment 2 DMacks 2009-08-12 16:15:20 UTC
Then the bug is that it lists the same result twice ("doesn't list redirect" is only half-true).

I'm temporarily setting [[1,4-dichlorobenzene]] as a soft redirect to see how it behaves, so will check back later to see how that behaves.
Comment 3 DMacks 2009-08-13 02:53:47 UTC
Alright, it's been 10 hours, so I assume any caching or reindexing has happened. With [[1,4-dichlorobenzene]] not a #REDIRECT, the suggestions list still lists two entries for "1,4-Dichlorobenzene", both of which go to the capital-D page.
Comment 4 Roan Kattouw 2009-08-13 09:18:24 UTC
(In reply to comment #3)
> Alright, it's been 10 hours, so I assume any caching or reindexing has
> happened. With [[1,4-dichlorobenzene]] not a #REDIRECT, the suggestions list
> still lists two entries for "1,4-Dichlorobenzene", both of which go to the
> capital-D page.
> 

Still, it's probably got to do with the script resolving redirects and not filtering for duplicates. As far as the software is concerned, 'd' is not the first letter of [[1,4-dichlorobenzene]] ('1' is), so it would never capitalize it for that reason.
Comment 5 matanya 2012-08-05 21:27:47 UTC
Not a bug.

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


Navigation
Links