[Conkeror] [PATCH 2/2] search-engine: provide alternative urls for search engine webjumps

John J Foerch jjfoerch at earthlink.net
Sat Feb 7 18:35:36 PST 2009


David Kettler <kettler at internode.on.net> writes:
>>> +    url = url.replace("//search.", "//");
>>
>> What is the purpose of this line?
>
> Here are the (path stripped) urls from the provided search-engines:
>
> % sed -ne '/text\/html/{s,.*template=",,;s,\(.*://[^/]*\)/.*,\1,;p}' *.xml
> http://www.answers.com
> http://search.creativecommons.org
> http://search.ebay.com
> http://www.google.com
> https://bugzilla.mozilla.org
> http://en.wikipedia.org
> http://search.yahoo.com
>
> My intention is that the alternative url is normally the home page of
> the site.  Three of those urls have a "search." component in the url
> which, if removed, yields the home page.  That's what the
> url.replace() line is for.
>
> You could argue that visiting a specialised search page is also
> useful. But it's hard to intuit what that page is on most sites (and
> most sites don't have anything more than a simple search box anyway).
> So I think its better for the intuited alternative to be consistently
> the home page.  The user can always specify something else explicitly
> of they prefer.

Oh, okay.

-- 
John Foerch




More information about the Conkeror mailing list