diff --git a/app/views/delivery_locations/index.json.jbuilder b/app/views/delivery_locations/index.json.jbuilder index 1c0b40a8a..871a57386 100644 --- a/app/views/delivery_locations/index.json.jbuilder +++ b/app/views/delivery_locations/index.json.jbuilder @@ -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 diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 416e5825e..cb7f04ba9 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -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