Enable click tab for google chrome search on my website

Possible duplicate:
How to add google chrome omnibox support for your website?

I have a question about how to enable the "click a tab for search" feature in Google Chrome for my own site.

I have already linked the opensearch.xml document and I have the following:

<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>

However, this still does not work. Am I doing something wrong?

Thanks!

+6
source share
1 answer

Here is an opensearch.xml example that works for me:

 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Example.com</ShortName> <LongName>Example.com Search</LongName> <Description>Search through Example.com</Description> <Query role="example" searchTerms="example search"/> <InputEncoding>UTF-8</InputEncoding> <OutputEncoding>UTF-8</OutputEncoding> <AdultContent>false</AdultContent> <Language>en-us</Language> <SyndicationRight>open</SyndicationRight> <Developer>Example.com</Developer> <Tags>tag1,tag2</Tags> <Image height="16" width="16" type="image/vnd.microsoft.icon">http://example.com/favicon.ico</Image> <Url type="text/html" template="http://example.com/search.html?q={searchTerms}"/> <Url type="application/x-suggestions+json" template="http://example.com/suggestions.html?query={searchTerms}"/> </OpenSearchDescription> 

I think localhost and / or the non-standard port 3000 can also contribute to this problem.

+7
source

Source: https://habr.com/ru/post/897139/


All Articles