Google please do not redirect me just because I am traveling
I am traveling a lot for my current job taking me also outside of The Netherlands into Belgium and Germany from time to time. Lately I spent a lot of time around the Brussels in Belgium, which is the French speaking part of the country. As a result all the searches I perform using the Google search bar plugin within Firefox get redirected to a French version of the Google pages and the search result favor web pages written in French.
Since I can hardly speak or read French I find myself constantly typing in a URL for a (in my case) Dutch localized version of Google to do my searches. This totally defeats the purpose of Firefox’s search bar.
Look for a file named google.xml. On Windows systems this file is located at C:\Program Files\Mozilla Firefox\searchplugins. On Mac OS systems the file is inside the Firefox.app. You can get to the file by right (or control) clicking on Firefox.app and selecting ‘Show Package Contents’ from the menu. Within the new Finder window navigate to /Contents/MacOS/searchpulgins.
By default (Firefox 3.0.6) the file contains the following information (except for the Image tag, data for the image itself has been removed)
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google</ShortName>
<Description>Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,...</Image>
<Url type="application/x-suggestions+json" method="GET"
template="http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl={moz:locale}&q={searchTerms}"/>
<Url type="text/html" method="GET" template="http://www.google.com/search">
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
<Param name="aq" value="t"/>
<!-- Dynamic parameters -->
<Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
<MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
</Url>
<SearchForm>http://www.google.com/firefox</SearchForm>
</SearchPlugin>
Edit the content of the file like below (bold text indicates the changes made to the file)
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google</ShortName>
<Description>Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,...</Image>
<Url type="application/x-suggestions+json" method="GET"
template="http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl={moz:locale}&q={searchTerms}"/>
<Url type="text/html" method="GET" template="http://www.google.com/search">
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
<Param name="aq" value="t"/>
<Param name="hl" value="en"/>
<!-- Dynamic parameters -->
<Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
<MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
</Url>
<SearchForm>http://www.google.com/firefox</SearchForm>
</SearchPlugin>
This little change ensures that you are still being addressed in English although you are still redirected to a localized Google page. If you totally want to prevent the redirect to happen you could, instead of using “http://www.google.com/search”, use something like “http://www.google.nl/search” or any other of Googles localized search pages.
