diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js
index 2efa460d5..14d3134ca 100644
--- a/app/assets/config/manifest.js
+++ b/app/assets/config/manifest.js
@@ -6,4 +6,3 @@
//= link administrate/application.css
//= link administrate/application.js
//= link katex.css
-//= link search.xml
diff --git a/app/assets/javascripts/base.js.erb b/app/assets/javascripts/base.js.erb
index c3e21be35..a525bc8c3 100644
--- a/app/assets/javascripts/base.js.erb
+++ b/app/assets/javascripts/base.js.erb
@@ -685,9 +685,9 @@ var instantClick
// INITIALIZE/ERROR HANDLING
Honeybadger.configure({
- apiKey: "<%= ApplicationConfig['HONEYBADGER_JS_API_KEY'] %>",
+ apiKey: document.body.dataset.honeybadgerKey,
environment: "<%= Rails.env %>",
- revision: "<%= ApplicationConfig['HEROKU_SLUG_COMMIT'] %>",
+ revision: document.body.dataset.releaseFootprint,
ignorePatterns: [/ResizeObserver/i, /MetaMask/i],
});
diff --git a/app/assets/javascripts/initializers/initializeCommentsPage.js.erb b/app/assets/javascripts/initializers/initializeCommentsPage.js.erb
index f05c730b3..77ca00247 100644
--- a/app/assets/javascripts/initializers/initializeCommentsPage.js.erb
+++ b/app/assets/javascripts/initializers/initializeCommentsPage.js.erb
@@ -159,7 +159,7 @@ function toggleCodeOfConduct() {
var checkboxWrapper = document.getElementById('toggle-code-of-conduct-checkbox');
if (checkboxWrapper && !codeOfConduct) {
checkboxWrapper.innerHTML = '\
- '
+ '
}
}
diff --git a/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb b/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb
index f5e25a91d..a3d247b58 100644
--- a/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb
+++ b/app/assets/javascripts/utilities/buildCommentFormHTML.js.erb
@@ -5,7 +5,7 @@ function buildCommentFormHTML(commentableId, commentableType, parentId) {
if (user && !user.codeOfConduct && user.commentCount < 1){
codeOfConductHTML = '
'
}
var randomIdNumber = Math.floor(Math.random() * 1991)
diff --git a/app/assets/javascripts/utilities/buildCommentHTML.js.erb b/app/assets/javascripts/utilities/buildCommentHTML.js.erb
index 863f3a6a7..3a4fdac0e 100644
--- a/app/assets/javascripts/utilities/buildCommentHTML.js.erb
+++ b/app/assets/javascripts/utilities/buildCommentHTML.js.erb
@@ -61,7 +61,7 @@ function buildCommentHTML(comment) {
\
Settings\
\
- Report Abuse\
+ Report Abuse\
\
\
\
diff --git a/app/controllers/open_search_controller.rb b/app/controllers/open_search_controller.rb
new file mode 100644
index 000000000..7853ee5fb
--- /dev/null
+++ b/app/controllers/open_search_controller.rb
@@ -0,0 +1,8 @@
+class OpenSearchController < ApplicationController
+ before_action :set_cache_control_headers, only: %i[show]
+
+ def show
+ set_surrogate_key_header "open-search-xml"
+ render layout: false
+ end
+end
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index bb92de97a..777d41f1e 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -24,7 +24,11 @@
<%= stylesheet_link_tag "admin" %>
-
+
+ >
<%= logo_svg %>
diff --git a/app/assets/xml/search.xml.erb b/app/views/open_search/show.xml.erb
similarity index 100%
rename from app/assets/xml/search.xml.erb
rename to app/views/open_search/show.xml.erb
diff --git a/app/views/shell/_top.html.erb b/app/views/shell/_top.html.erb
index 420c97512..6c16ecc6b 100644
--- a/app/views/shell/_top.html.erb
+++ b/app/views/shell/_top.html.erb
@@ -45,7 +45,7 @@
-
" type="application/opensearchdescription+xml" title="<%= community_qualified_name %>" />
+
" type="application/opensearchdescription+xml" title="<%= community_qualified_name %>" />
<% end %>
<% unless internal_navigation? %>
@@ -55,6 +55,8 @@
class="<%= SiteConfig.default_font.tr("_", "-") %>-article-body"
data-pusher-key="<%= ApplicationConfig["PUSHER_KEY"] %>"
data-app-name="<%= ApplicationConfig["APP_NAME"] %>"
+ data-honybadger-key="<%= ApplicationConfig['HONEYBADGER_JS_API_KEY'] %>"
+ data-release-footprint="<%= ApplicationConfig['RELEASE_FOOTPRINT'] %>"
data-ga-tracking="<%= SiteConfig.ga_tracking_id %>">