Steps to replicate the issue (include links if applicable):
- Search for any string with a # (hash symbol) in it, on a current mediawiki instance.
- The string is truncated at the hash, and only the substring before it is used to try automatically redirecting to an existing page
- If no page is found, the warning message that no such page exists only shows the search string up to the #
- This is noticeable when trying to find phrases that contain a hash symbol. For instance: try searching for "#nofilter", this will look for a page whose title is a single doublequote. Search for We are #1 and it will look for a page titled We are
What happens?:
- Search for "#nofilter"
- If on a wiki that has a page at that title (such as some large wikipedias), you are taken directly to the page about the doublequote character.
- If there is no such page, results page leads with the following warning:
Create the page """ on this wiki! See also the search results found.
- The search results shown match properly against the full search string.
What should have happened instead?:
- Just show the search results, don't interpret the # symbol as the start of a fragment identifier. [unless a search string classifier suggests that's what it is?]