Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ workflows:
branches:
ignore:
- master
- bugfix/parensTmp
- build_and_push_beavernetes:
name: Build and push application image to Beavernetes image repository
requires:
Expand All @@ -292,5 +293,6 @@ workflows:
- master
- /infra\/.*/
- /staging\/.*/
- bugfix/parensTmp
repo: od2_web
environment: production
2 changes: 1 addition & 1 deletion app/views/bot_detection/challenge.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

result = await response.json();
if (result["success"] == true) {
window.location.href = '<%= raw @dest.gsub("'", "%27") ) %>';
window.location.href = '<%= raw @dest.gsub("'", "%27") %>';
} else {
console.error("Turnstile response reported as failure: " + JSON.stringify(result))
_displayChallengeError();
Expand Down
14 changes: 14 additions & 0 deletions config/initializers/hacks/blacklight_search_state.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal:true

Rails.application.config.to_prepare do
Blacklight::SearchState.class_eval do
# The SPARQL gem stomps on the Rails definition of deep_dup and gives us a Hash instead of
# a HashWithIndifferentAccess. This is an ugly workaround to get the right contract with
# the upstream class.
# https://github.com/ruby-rdf/sparql/blob/develop/lib/sparql/algebra/extensions.rb#L238-L244
def to_hash
super.with_indifferent_access
end
alias to_h to_hash
end
end