par*_*ara 8 subdomain triggers keyword opensearch omnibox
我正在尝试获得一个开放的搜索定义来处理子域。
我<head>在 html 中添加了正确的行。
例子:
<link rel="search" type="application/opensearchdescription+xml" title="Example" href="http://www.example.org/opensearch.xml" />
Run Code Online (Sandbox Code Playgroud)
在 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>
Run Code Online (Sandbox Code Playgroud)
当我访问http://www.example.org时,搜索已正确添加到 Google Chrome 的多功能框设置中。触发器关键字变为“example.org”。
但是,当我访问http://subdomain.example.org 时,它在 中具有相同的行<head>,搜索添加了触发器关键字“subdomain.example.org”而不是“example.org”。
有没有解决的办法?
我在http://www.opensearch.org/Specifications/OpenSearch/1.1的文档中没有找到有关如何设置触发器关键字的任何信息。
| 归档时间: |
|
| 查看次数: |
1236 次 |
| 最近记录: |