autocomplete: bump opensearch description version.

Fix browsers still using the old autocomplete endpoint for opensearch
searches (searches performed in the browser toolbar).
This commit is contained in:
evazion
2020-12-20 01:33:10 -06:00
parent 3ad4beac02
commit 48ff7c42cd

View File

@@ -7,7 +7,7 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<%= render "meta_links", collection: @current_item %>
<%= tag.link rel: "canonical", href: canonical_url %>
<%= tag.link rel: "search", type: "application/opensearchdescription+xml", href: opensearch_url(format: :xml, version: 1), title: "Search posts" %>
<%= tag.link rel: "search", type: "application/opensearchdescription+xml", href: opensearch_url(format: :xml, version: 2), title: "Search posts" %>
<%= csrf_meta_tag %>
<% unless CurrentUser.enable_desktop_mode? %>