[Mozilla Enterprise] policies.json & Search

James Pearson james-p at moving-picture.com
Thu Aug 2 14:56:42 UTC 2018


Thomas Besser wrote:
> 
> Hi,
> 
> first steps with "policies.json" with FF 60.1.0 ESR. I'm trying to set
> "SearchEngines" and it does not work.
> 
> Placed the file as described
> (https://github.com/mozilla/policy-templates/blob/master/README.md) in
> directory "distribution" in installdir of FF:
> 
> {
>    "policies": {
>      "SearchEngines": {
>        "Add": [
>          {
>            "Name": "StartPage",
>            "URLTemplate":
> "https://startpage.com/do/search?lui=deutsch&language=deutsch&cat=web&query=%s", 
> 
>          }
>        ],
>        "Default": "StartPage",
>        "PreventInstalls": false
>      }
>    }
> }
> 
> After a restart of FF (and alternatively deleting existing profile,
> because with autoconfig.js it only worked on new profile) "StartPage" is
> not defined as search engine nor the default.
> 
> Am I missing something? Or is something wrong, e.g. URLTemplate?

I believe the thing you are searching for is specified by 
'{searchTerms}'  - i.e. the end of your URLTemplate may need to be 
"...&query={searchTerms}" ?

No idea if this is the cause of your issue ...

James Pearson


More information about the Enterprise mailing list