Skip to content

Instantly share code, notes, and snippets.

@alirobe
Last active August 19, 2022 21:50
Show Gist options
  • Save alirobe/4264770 to your computer and use it in GitHub Desktop.
Save alirobe/4264770 to your computer and use it in GitHub Desktop.
Enable Chrome 'quick-search' for SharePoint Intranets
<!--
add inside the 'head' element of master page.
replace title="Intranet" with the name of your intranet (if branded)
-->
<link rel="search" title="Intranet" type="application/opensearchdescription+xml" href="/Style%20Library/opensearch.xml" />
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<!--under 16 chars. no spaces-->
<ShortName>Intranet</ShortName>
<!--under 48 chars-->
<Description>Search your Intranet</Description>
<Tags>Intranet</Tags>
<Query role="example" searchTerms="test"/>
<!-- UPDATE THIS URL - SP Standard/Enterprise: use search center results URL - make sure that ampersands are encoded -->
<Url type="text/html" method="get" rel="results" template="http://INTRANETURL/_layouts/OSSSearchResults.aspx?k={searchTerms}&amp;s=All%20Sites"/>
</OpenSearchDescription>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment