Skip to content

Commit

Permalink
fix(search): add base URL to URLs in OpenSearch
Browse files Browse the repository at this point in the history
There were a lot of caching issues in both Firefox and Chromium, as they
both cache the XML file once and "never" again.  I'm not sure long that
lasts, but it's likely that cleaning cached data would evict it from the
cache.  I, however, just used different ports since it was faster.  It's
unfortunate that we have to hard-code base URL.  I thought it would've
inherited it since that's how I made it work the first time around.

Ref #275
  • Loading branch information
vednoc committed Oct 25, 2023
1 parent 008ec03 commit fee59d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/static/opensearch.xml
Expand Up @@ -3,7 +3,7 @@
<ShortName>USw Search</ShortName>
<Description>Search for userstyles on UserStyles.world</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">/mascot.svg</Image>
<Url type="text/html" template="/search?q={searchTerms}"/>
<moz:SearchForm>/search</moz:SearchForm>
<Image width="16" height="16" type="image/svg">https://userstyles.world/mascot.svg</Image>
<Url type="text/html" template="https://userstyles.world/search?q={searchTerms}"/>
<moz:SearchForm>https://userstyles.world/search</moz:SearchForm>
</OpenSearchDescription>

0 comments on commit fee59d7

Please sign in to comment.