Last modified: 2008-12-28 22:03:59 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 T18147, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16147 - Always use /wiki/ for searches, where possible
Always use /wiki/ for searches, where possible
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-27 12:47 UTC by Melancholie
Modified: 2008-12-28 22:03 UTC (History)
1 user (show)

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


Attachments

Description Melancholie 2008-10-27 12:47:54 UTC
Currently, searches with #searchform and #bodySearch will result in /wiki/Special:Search

But on [[Special:Search]] itself, #search and #powersearch are using /w/index.php?title=Special%3ASearch

The problem now is (beside those URL escaped characters like %3A), that for Wikimedia wikis the requests done under /w/index.php are not counted within our Squid log stream stats (Wikistats)!

This could easily be fixed by changing
<form id="search" method="get" action="/w/index.php"><input name="title" type="hidden" value="Special:Search" />
to
<form id="search" method="get" action="/wiki/Special:Search">

and
<form id="powersearch" method="get" action="/w/index.php">...<input name="title" type="hidden" value="Special:Search" />
to
<form id="powersearch" method="get" action="/wiki/Special:Search">

This would be more consistent, will remove/shorten ugly %-encodings, reduce code and will improve our stats!
Comment 1 Melancholie 2008-10-27 13:03:38 UTC
Not sure whether this should also be done for the "next" and "previous" links, by the way!

Actually, it should be good to not count "one" single search (incl. navigating through next, next, next results) more than once!?
On the other hand we just count *page hits/accesses* and so those links should also access Special:Search under /wiki/...

For consistency reason it should be done anyway, although a bit harder to do; search form are easy to improve.
Comment 2 Brion Vibber 2008-12-28 22:03:59 UTC
We'd actually want to do the opposite:

* bug 16823 -- on many third-party installations, putting parameters on the Special:Search view URL breaks entirely
* general robots.txt goodness -- spiders are more likely to hit /wiki/Special:Search whatever whereas the index.php URLs will be blocked on more installations (including ours)

Stats should simply be updated to handle the other URLs and catch search terms specifically -- bug 13488.

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


Navigation
Links