Skip to content

Commit fee59d7

Browse files
committed
fix(search): add base URL to URLs in OpenSearch
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
1 parent 008ec03 commit fee59d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/static/opensearch.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ShortName>USw Search</ShortName>
44
<Description>Search for userstyles on UserStyles.world</Description>
55
<InputEncoding>UTF-8</InputEncoding>
6-
<Image width="16" height="16" type="image/x-icon">/mascot.svg</Image>
7-
<Url type="text/html" template="/search?q={searchTerms}"/>
8-
<moz:SearchForm>/search</moz:SearchForm>
6+
<Image width="16" height="16" type="image/svg">https://userstyles.world/mascot.svg</Image>
7+
<Url type="text/html" template="https://userstyles.world/search?q={searchTerms}"/>
8+
<moz:SearchForm>https://userstyles.world/search</moz:SearchForm>
99
</OpenSearchDescription>

0 commit comments

Comments
 (0)