Keyword.URL: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
(Has an effect in: SeaMonkey (all versions before 2.20) Related bugs: added SeaMonkey bugs 441882 and 886021)
 
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{preference|pref=keyword.URL}}
{{preference|pref=keyword.URL}}
'''Note:''' This preference was removed to consolidate search preferences in Firefox 23 ([https://bugzilla.mozilla.org/show_bug.cgi?id=738818 bug 738818]).  As of [http://www.seamonkey-project.org/releases/seamonkey2.20/ SeaMonkey 2.20] this preference, though not removed, apparently has no effect. [https://groups.google.com/forum/#!topic/mozilla.support.seamonkey/pz_msJwYM2E] 


==Background==
==Background==
When entering information in the [[:Category:Location Bar|Location Bar]], Mozilla attempts to convert the information into a usable URI. For example, &ldquo;<tt>mozilla.org</tt>&rdquo; is automatically converted to &ldquo;<tt><nowiki>http://mozilla.org/</nowiki></tt>&rdquo;. When Mozilla is unable to discern what URL the user wanted, the information that was entered may be submitted to an Internet Keywords service. This preference determines the Internet Keywords service URL.
When entering information in the [[:Category:Location Bar|Location Bar]], Mozilla attempts to convert the information into a usable URL. For example, &ldquo;<tt>mozilla.org</tt>&rdquo; is automatically converted to &ldquo;<tt><nowiki>http://mozilla.org/</nowiki></tt>&rdquo;. When Mozilla is unable to discern what URL the user wanted, the information that was entered may be submitted to an Internet Keywords service. This preference determines the Internet Keywords service URL.
 
== Possible values and their effects ==
 
Any valid URL may be specified. The keyword will be appended to the URL and then the user will be redirected to the new URL. The default value is:
 
http://www.google.com/search?ie=UTF-8&oe=utf-8&q=
 
In most Mozilla products; in Firefox and Sunbird the default was:
 
http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=


==Possible values and their effects==
Recent versions allow this value to be localized.
Any valid URL may be specified. The keyword will be appended to the URL and then the user will be redirected to the new URL. The default value is &ldquo;<tt><nowiki>http://www.google.com/search?ie=UTF-8&oe=utf-8&q=</nowiki></tt>&rdquo; in most Mozilla products; in Firefox and Sunbird the default is &ldquo;<tt><nowiki>http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=</nowiki></tt>&rdquo;. Recent versions allow this value to be localized.


In Firefox 2.0, the default has been changed to use Google’s “[http://toolbar.google.com/bbn_help.html Browse by Name]” service: <tt><nowiki>http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=</nowiki></tt>.
In Firefox 2.0, the default has been changed to use Google’s “[http://toolbar.google.com/bbn_help.html Browse by Name]” service as part of [https://bugzilla.mozilla.org/show_bug.cgi?id=323801 Bug 323801]:
 
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=


==Caveats==
==Caveats==
* This preference only has an effect when [[keyword.enabled]] is set to '''true'''.
* This preference only has an effect when [[keyword.enabled]] is set to '''true'''.
* When the Internet Keywords behavior is triggered, information will be sent to the specified URL without prompting. This has possible privacy implications, though no more serious than accidentally submitting a search to Google.
* When the Internet Keywords behavior is triggered, information will be sent to the specified URL without prompting. This has possible privacy implications, though no more serious than accidentally submitting a search to Google.
* The default Internet Keywords provider in Firefox&mdash;Google&rsquo;s &ldquo;I&rsquo;m Feeling Lucky&rdquo; search&mdash;is the reason why typing a malformed URI such as &rdquo;<tt>http//www.mozilla.org</tt>&ldquo; will automatically direct you to Microsoft&rsquo;s website.
* The default Internet Keywords provider in Firefox&mdash;Google&rsquo;s &ldquo;I&rsquo;m Feeling Lucky&rdquo; search&mdash;is the reason why typing a malformed URI such as &rdquo;<tt>http//www.mozilla.org</tt>&ldquo; (missing the colon after http) will automatically direct you to a site other than Mozilla&rsquo;s.
* Mozilla may also attempt a simpler lookup by concatenating a prefix and suffix on the supplied domain name.  This action is controlled by the <tt>browser.fixup.alternate.*</tt> settings in [[About:config entries|about:config]].
* Mozilla may also attempt a simpler lookup by concatenating a prefix and suffix on the supplied domain name.  This action is controlled by the <tt>browser.fixup.alternate.*</tt> settings in [[About:config entries|about:config]].
==Replacing Google with other search engines for location bar search==
If you are not a fan of Google, you can replace it with another search engine, for example, [http://scroogle.org/ Scroogle] or [http://bing.com Bing].
Note that these give 'regular' result pages, whereas the default Google string directly sends you to the most likely result if it deems the query unambiguous.
Go to [[about:config]], find the '''keyword.URL''' preference, context-click (right-click) the preference name, select Modify and enter a new value. It is much like [[Using keyword searches |using a keyworded bookmark]] for a search, except the query is appended at the end whereas keyworded bookmarks replace '''%s''' with your query.
* For Scroogle,  enter '''<nowiki>http://www.scroogle.org/cgi-bin/nbbw.cgi?Gw=</nowiki>'''
* for Bing, enter '''<nowiki>http://bing.com/results.aspx?q=</nowiki>'''
* for Ixquick, enter '''<nowiki>http://ixquick.com/do/metasearch.pl?cat=web&query=</nowiki>'''
* for Yahoo!, enter '''<nowiki>http://search.yahoo.com/search?p=</nowiki>'''
* For DDG (DuckDuckGo), enter '''<nowiki>https://duckduckgo.com/?q=</nowiki>'''


==First checked in==
==First checked in==
Line 23: Line 47:
* Mozilla Phoenix (all versions)
* Mozilla Phoenix (all versions)
* Mozilla Firebird (all versions)
* Mozilla Firebird (all versions)
* Mozilla Firefox (all versions)
* Mozilla Firefox (all versions before 23)
* SeaMonkey (all versions)
* SeaMonkey (all versions before 2.20 [https://groups.google.com/forum/#!topic/mozilla.support.seamonkey/pz_msJwYM2E])


==Related bugs==
==Related bugs==
Line 30: Line 54:
* [https://bugzilla.mozilla.org/show_bug.cgi?id=323798 Bug 323798 - Keyword URL Needs to be localized]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=323798 Bug 323798 - Keyword URL Needs to be localized]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=323801 Bug 323801 - Improve Keyword URL resolution]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=323801 Bug 323801 - Improve Keyword URL resolution]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=441882 Bug 441882 - keyword.URL should be synced with selected search engine]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=718088 Bug 718088 - offer to re-set keyword.URL if it has a non-default value]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=738818 Bug 738818 - consolidate Firefox search preferences]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=886021 Bug 886021 - Rollup updates for SeaMonkey web search. Sync with Firefox.]


==Related preferences==
==Related preferences==
Line 41: Line 69:
* [http://wp.netscape.com/escapes/keywords/faq.html Netscape Internet Keywords FAQ]
* [http://wp.netscape.com/escapes/keywords/faq.html Netscape Internet Keywords FAQ]
* [http://www.google.com/help/features.html#lucky Google Help: Search Features - I'm Feeling Lucky]
* [http://www.google.com/help/features.html#lucky Google Help: Search Features - I'm Feeling Lucky]
* [http://toolbar.google.com/bbn_help.html Google Toolbar: Browse by Name]
* [http://toolbar.google.com/bbn_help.html Google Toolbar: Browse by Name] see ([[Problematic extensions]]) and [[Using Google Toolbar features without toolbars]]
 


[[Category:Preferences]]
[[Category:Preferences]]
[[Category:Location Bar]]
[[Category:Location Bar]]

Latest revision as of 13:47, 26 August 2013

Note: This preference was removed to consolidate search preferences in Firefox 23 (bug 738818). As of SeaMonkey 2.20 this preference, though not removed, apparently has no effect. [1]

Background

When entering information in the Location Bar, Mozilla attempts to convert the information into a usable URL. For example, “mozilla.org” is automatically converted to “http://mozilla.org/”. When Mozilla is unable to discern what URL the user wanted, the information that was entered may be submitted to an Internet Keywords service. This preference determines the Internet Keywords service URL.

Possible values and their effects

Any valid URL may be specified. The keyword will be appended to the URL and then the user will be redirected to the new URL. The default value is:

http://www.google.com/search?ie=UTF-8&oe=utf-8&q=

In most Mozilla products; in Firefox and Sunbird the default was:

http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=

Recent versions allow this value to be localized.

In Firefox 2.0, the default has been changed to use Google’s “Browse by Name” service as part of Bug 323801:

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

Caveats

  • This preference only has an effect when keyword.enabled is set to true.
  • When the Internet Keywords behavior is triggered, information will be sent to the specified URL without prompting. This has possible privacy implications, though no more serious than accidentally submitting a search to Google.
  • The default Internet Keywords provider in Firefox—Google’s “I’m Feeling Lucky” search—is the reason why typing a malformed URI such as ”http//www.mozilla.org“ (missing the colon after http) will automatically direct you to a site other than Mozilla’s.
  • Mozilla may also attempt a simpler lookup by concatenating a prefix and suffix on the supplied domain name. This action is controlled by the browser.fixup.alternate.* settings in about:config.

Replacing Google with other search engines for location bar search

If you are not a fan of Google, you can replace it with another search engine, for example, Scroogle or Bing. Note that these give 'regular' result pages, whereas the default Google string directly sends you to the most likely result if it deems the query unambiguous.

Go to about:config, find the keyword.URL preference, context-click (right-click) the preference name, select Modify and enter a new value. It is much like using a keyworded bookmark for a search, except the query is appended at the end whereas keyworded bookmarks replace %s with your query.

  • For Scroogle, enter http://www.scroogle.org/cgi-bin/nbbw.cgi?Gw=
  • for Bing, enter http://bing.com/results.aspx?q=
  • for Ixquick, enter http://ixquick.com/do/metasearch.pl?cat=web&query=
  • for Yahoo!, enter http://search.yahoo.com/search?p=
  • For DDG (DuckDuckGo), enter https://duckduckgo.com/?q=

First checked in

1999-11-10 by Judson Valeski

Has an effect in

  • Netscape (all versions since 6 PR 1)
  • Mozilla Suite (all versions since M11)
  • Mozilla Phoenix (all versions)
  • Mozilla Firebird (all versions)
  • Mozilla Firefox (all versions before 23)
  • SeaMonkey (all versions before 2.20 [2])

Related bugs

Related preferences

See also

External links