Search Term by Location Bar

Hi,

We have created Search extension for intranet application.

In it if user search for any term in location bar (Browser url text), It will search for keyword in our own Database and will return result.

I could successfully integrate Url with Firefox.

But the “searchTerms” is not getting replaced.

I am referring below documentation,
https://developer.mozilla.org/en-US/docs/draft_Search_Extension_Tutorial#Changing_the_Default_Search_Engine

The Url is directly getting redirected to, “Example Domain

It should replace my keyword with “searchTerms

Could you please suggest me if I am missing anything?

Regards
Ashish Sapkale

So you have you made a open search plugin? xml file? Can you share that please.

No I am not using XML file.

It Simple API plugin.

I could achieve it using “&q={searchTerms}”

I added “{” and it started working…

I think we need to update the related documentation with this update.

1 Like

That would be fantastic if you can edit it for us. MDN is an open system, anyone can log in and edit it. :slight_smile: