[elinks-users] Preserving spaces when using protocols?

Kalle Olavi Niemitalo kon at iki.fi
Mon Jul 30 05:57:39 MDT 2007


"Kelly Jones" <kelly.terry.jones at gmail.com> writes:

> If I go to "wiki:sue lawley" in ELinks, it takes me to the Wikipedia
> search page for "Sue%20Lawley" [sic], which does not include the
> article I want.

get_hooked_uri() calls trigger_event() and gets uristring =
"http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley".
The bug is in the server, which incorrectly redirects to
"http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley".

So the solution is to edit the smartprefix and change "www" to
"en".  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.

I will change the default "wiki" smartprefix in elinks-0.11 and
elinks-0.12.  Eventually, www.wikipedia.org may be fixed as well.


More information about the elinks-users mailing list