[Mozilla Enterprise] policies.json & Search

Mike Kaply mkaply at mozilla.com
Thu Aug 2 14:58:53 UTC 2018


1. You have an extra comma after the URLTemplate line. I recommend using
something like JSONLint to find this.
2. The replacement string is {searchTerms} not %s.

After these two changes, it works for me.

One other note - startpage is www.startpage.com, not startpage.com (don't
matter, but avoids a redirect)

Mike

On Thu, Aug 2, 2018 at 9:51 AM, Felipe Gomes <fgomes at mozilla.com> wrote:

> Can you set the pref "browser.policies.loglevel" to "debug", and then
> observe the error console?
>
> Best regards,
> Felipe
>
> On Thu, Aug 2, 2018 at 7:34 AM, Thomas Besser <thomas.besser at kit.edu>
> 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/po
>> licy-templates/blob/master/README.md) in directory "distribution" in
>> installdir of FF:
>>
>> {
>>   "policies": {
>>     "SearchEngines": {
>>       "Add": [
>>         {
>>           "Name": "StartPage",
>>           "URLTemplate": "https://startpage.com/do/sear
>> ch?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?
>>
>> Regards
>> Thomas
>>
>> --
>> Karlsruher Institut für Technologie (KIT)
>> archIT [IT-Management der Fakultät Architektur]
>> Dipl.-Ing. Thomas Besser
>> Gebäude 11.40, Raum 010 | Fon +49 721 608 46024
>> http://www.arch.kit.edu/fakultaet/it-management.php
>>
>> KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft
>>
>>
>> _______________________________________________
>> Enterprise mailing list
>> Enterprise at mozilla.org
>> https://mail.mozilla.org/listinfo/enterprise
>>
>> To unsubscribe from this list, please visit
>> https://mail.mozilla.org/listinfo/enterprise or send an email to
>> enterprise-request at mozilla.org with a subject of "unsubscribe"
>>
>
>
> _______________________________________________
> Enterprise mailing list
> Enterprise at mozilla.org
> https://mail.mozilla.org/listinfo/enterprise
>
> To unsubscribe from this list, please visit https://mail.mozilla.org/
> listinfo/enterprise or send an email to enterprise-request at mozilla.org
> with a subject of "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/enterprise/attachments/20180802/8c551f17/attachment-0002.html>


More information about the Enterprise mailing list