Skip to content

Commit

Permalink
Merge pull request #825 from nla/release-please--branches--main--comp…
Browse files Browse the repository at this point in the history
…onents--nla-blacklight

chore(main): release 2.11.1
  • Loading branch information
CEdwardsBlasikiewicz committed Dec 21, 2023
1 parent bf7676c commit 53faa81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/feedback_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<ul class="list-unstyled">
<li class="feedback-link">
<%= link_to t("feedback.report_error"), helpers.error_feedback_url(@id) %>
<%= link_to t("feedback.culturally_sensitive"), helpers.culturally_sensitive_url(@id) %>
</li>
</ul>
</div>
Expand Down
9 changes: 9 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ def error_feedback_url(id)
end
end

def culturally_sensitive_url(id)
url = ENV.fetch("CULTURALLY_SENSITIVE_URL", "#")
if url != "#"
"#{url}&qnudftb17=#{request.original_url}&qnudftb11=#{id}"
else
url
end
end

# Used to find users who have made too many requests to a resource
def log_eresources_offsite_access(url)
message = if current_user.present?
Expand Down

0 comments on commit 53faa81

Please sign in to comment.