I am trying to get an open search definition for working with subdomains.
I added the correct line in the <head>
html.
Example:
<link rel="search" type="application/opensearchdescription+xml" title="Example" href="http://www.example.org/opensearch.xml" />
In opensearch.xml:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName>Example</ShortName> <LongName>Example Search</LongName> <Description>Example Description</Description> <InputEncoding>UTF-8</InputEncoding> <Image width="16" height="16" type="image/x-icon">http://www.example.org/favicon.ico</Image> <Url type="text/html" method="get" template="http://www.example.org/search/{searchTerms}" /> </OpenSearchDescription>
The search is correctly added to the omnibox settings in Google Chrome when I am http://www.example.org . The trigger keyword becomes "example.org".
However, when I find http://subdomain.example.org , which has the same line in <head>
, the search is added with the trigger keyword "subdomain.example.org" instead of "example.org".
Is there any way around this?
I did not find any information on how to set the trigger keyword in the documentation at http://www.opensearch.org/Specifications/OpenSearch/1.1 .
source share