mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Rewrite wiki to en.wikipedia.org, avoid server bug.
<http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley> incorrectly redirects to <http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley> which searches for "sue%20lawley" rather than "sue lawley". By using en.wikipedia.org directly, we avoid the server bug. Prompted by an elinks-users post on 2007-07-27. I asked on #wikimedia-tech, and www.wikipedia.org does always redirect to en.wikipedia.org; it does not guess any other language based on headers or IP addresses or such. Also, the redirection exists only for compatibility, and skipping it avoids a few roundtrips to the server. So this change is good even if the server is eventually fixed.
This commit is contained in:
parent
db13653fb0
commit
042f9bade4
@ -191,7 +191,7 @@ static struct option_info uri_rewrite_options[] = {
|
||||
INIT_OPT_SMART_PREFIX("mw", "http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=%s"),
|
||||
INIT_OPT_SMART_PREFIX("mwt", "http://www.m-w.com/cgi-bin/thesaurus?book=Thesaurus&va=%s"),
|
||||
INIT_OPT_SMART_PREFIX("whatis", "http://uptime.netcraft.com/up/graph/?host=%s"),
|
||||
INIT_OPT_SMART_PREFIX("wiki", "http://www.wikipedia.org/w/wiki.phtml?search=%s"),
|
||||
INIT_OPT_SMART_PREFIX("wiki", "http://en.wikipedia.org/w/wiki.phtml?search=%s"),
|
||||
INIT_OPT_SMART_PREFIX("wn", "http://www.cogsci.princeton.edu/cgi-bin/webwn1.7.1?stage=1&word=%s"),
|
||||
/* Search the Free Software Directory */
|
||||
INIT_OPT_SMART_PREFIX("fsd", "http://directory.fsf.org/search/fsd-search.py?q=%s"),
|
||||
|
Loading…
Reference in New Issue
Block a user