From 53aa181a84e4c01e96b808797dd5c8bcce389def Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Tue, 24 Sep 2024 09:00:30 -0400 Subject: [PATCH] set explicitly the https protocol in the delivery locations url see: https://api.rubyonrails.org/v7.1.3.4/classes/ActionView/RoutingUrlFor.html --- app/views/delivery_locations/index.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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