Last modified: 2006-02-26 21:49:27 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 T4048, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2048 - Special:Search produces bogus URLs containing spaces
Special:Search produces bogus URLs containing spaces
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/ant lion
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-02 13:17 UTC by Leah
Modified: 2006-02-26 21:49 UTC (History)
0 users

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


Attachments

Description Leah 2005-05-02 13:17:14 UTC
For example, when searching for "ant lion", Special:Search produces the following HTML:

<p class='subtitle'>You searched for "<a href="/wiki/ant lion">ant lion</a>" <a href="/wiki/Special:Allpages/ant lion">[Index]</a></p>

The server does not recognize URLs containing spaces; in browsers that do not replace spaces with %20, these links will fail.
Comment 1 Anders Wegge Jakobsen 2005-05-22 09:39:49 UTC
(In reply to comment #0)
> For example, when searching for "ant lion", Special:Search produces the
following HTML:
> 
> <p class='subtitle'>You searched for "<a href="/wiki/ant lion">ant lion</a>"
<a href="/wiki/Special:Allpages/ant lion">[Index]</a></p>
> 
> The server does not recognize URLs containing spaces; in browsers that do not
replace spaces with %20, these links will fail.

This is not a MediaWiki bug, but rather a configuration error. The text on the
results page are inserted from [[MediaWiki:Searchquery]], where $1 is replaced
with the search term. If a valid link to a page named after the search term is
desired, it should be put in [[MediaWiki:Nogomatch]], where $1 is replaced with
a suitable URL for the term, and $2 is replaced with the search term in an
HTML-escaped form.

Please note that this description is valid for MediaWiki 1.4 only. In the
current development version, $1 in MediaWiki:Nogomatch is replaced with :<search
term>, and the whole text is then parsed as wiki marup.

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


Navigation
Links