Files
golink/tmpl/opensearch.xml
9d2c372f1d add support for browser bar search keyword
Respect custom hostname in open search document.

Co-authored-by: Will Norris <will@tailscale.com>
2022-12-05 15:01:33 -08:00

9 lines
532 B
XML

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>{{.Hostname}}</ShortName>
<Description>Private shortlinks on your tailnet</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/png">http://{{.Hostname}}/.static/favicon.png</Image>
<Url type="text/html" method="get" template="http://{{.Hostname}}/{searchTerms}"/>
<moz:SearchForm>http://{{.Hostname}}/</moz:SearchForm>
</OpenSearchDescription>