Skip to content

Commit

Permalink
set explicitly the https protocol in the delivery locations url
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Sep 24, 2024
1 parent 3509a75 commit 8eaff61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/delivery_locations/index.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ json.array!(@delivery_locations) do |delivery_location|
if Rails.env.test?
json.path delivery_location_path(delivery_location, format: :json)
else
json.url delivery_location_url(delivery_location, format: :json)
json.url delivery_location_url(delivery_location, format: :json, protocol: 'https')
end
json.partial! 'holding_locations/json_partials/library',
library: delivery_location.library
Expand Down
1 change: 0 additions & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@
config.active_record.dump_schema_after_migration = false

# config.action_mailer.default_url_options = { host: ENV["APPLICATION_URL"] || "bibdata-staging.lib.princeton.edu", protocol: "https" }
config.default_url_options = { host: ENV["APPLICATION_URL"] || "bibdata-staging.lib.princeton.edu", protocol: "https" }
end

0 comments on commit 8eaff61

Please sign in to comment.