https://bugzilla.wikimedia.org/show_bug.cgi?id=63764

            Bug ID: 63764
           Summary: Strip surrounding quotation marks from search
                    parameters before testing for page existence.
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Search
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       Web browser: ---
   Mobile Platform: ---

Searching for "foo bar" (with the quotation marks) results in a suggestion to
«Create the page ""foo bar"" on this wiki!» which, if followed, leads to the
creation of a page with the title [["foo bar"]]. This message appears EVEN if
the page [[Foo bar]] already exists.

Although this behavior is occasionally desirable (in those very few situations
in which the quotation marks should indeed be part of the title), I'd say that
in 99% of the times it's not. Most people search with quotation marks in order
to narrow down search results, and the average wiki user would not expect them
to become part of the title of a newly created article. Even experienced users
end up creating new articles with the suggested title and only later realize it
(I've done it a couple of times myself).

The large list of redirects starting with double quotes on the enwiki attests
to the high frequency of occurrences of this situation:
http://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=";

My suggestions:
1) If a page does not exist with the quotes, check if one exists without the
quotes;
2) In affirmative case, display message «There is a page named "Foo bar" on
this wiki!» ([[MediaWiki:Searchmenu-exists]])
3) In negative case, display [[MediaWiki:Searchmenu-new]] without the inner
pair of quotation marks around the searched term or expression. If a person
really needs to create an article titled [["foo bar"]], s/he can still do it by
typing the quotation marks in the URL or by following the red link to [["foo
bar"]] in an article.

This would greatly improve the user experience with the search functionality.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to