Page MenuHomePhabricator

Special:Search breaks when search term includes a #
Closed, ResolvedPublic

Description

Searching for a term with a hash in it breaks, even though the term is URL encoded.

Example: https://en.wikipedia.org/w/index.php?title=Special%3ASearch&profile=default&search=Wikipedia%3AFun+investigations%2F%23wikipedia-en&fulltext=Search

The search term is interpreted as "Wikipedia:Fun investigations/", but it should be "Wikipedia:Fun_investigations/#wikipedia-en".


Version: 1.21.x
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=17006

Details

Reference
bz45583

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:36 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz45583.
bzimport added a subscriber: Unknown Object (MLST).

The search term is interpreted as "Wikipedia:Fun investigations/"

Hmm, how I could I verify that statement for the displayed results?

At least "Results 1–20 of 2,989 for Wikipedia:Fun investigations/#wikipedia-en" looks correct...

mr.heat wrote:

I think this is a duplicate of bug 29890. Both may be duplicates of bug 17006.

I reported bug 29890, and I agree this bug is a duplicate of it. I also suspect they could be at least related to bug 17006, but I'm not sure they're quite duplicates of it. Someone who knows the technical basis of each bug may decide that they are in fact produced from the same cause, but I can't make that call. Maybe we could just fix one and see what happens to the other one :)

Thanks for catching that! Marking as a duplicate of bug 29890.

  • This bug has been marked as a duplicate of bug 29890 ***