microsoft / aka

Doc page listing all public aka.ms links for Microsoft admin portals
MIT License
300 stars 29 forks source link

Adding Search Bar Support to Firefox #1

Closed adityatelange closed 1 year ago

adityatelange commented 1 year ago

Hello Team,

We can add search bar support using a page which has opensearch config set.

Contents of html:

<link rel="search" type="application/opensearchdescription+xml" title="aka.ms" href="/opensearch.xml">

Contents of opensearch.xml

<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>aka.ms</ShortName>
  <Description>Search aka.ms</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">https://www.microsoft.com/favicon.ico?v2</Image>
  <Url type="text/html" method="get" template="https://aka.ms/{searchTerms}"></Url>
</OpenSearchDescription>

Demo: https://aka-ms.vercel.app (open in Firefox)

image

image

merill commented 1 year ago

This looks good. Would you be able to submit this as a PR? Thanks!

adityatelange commented 1 year ago

I think a solution is already merged with PR #4. That solution is way more easier than mine. Thank you for consideration, closing.