From f89417b5fbc5a49ad74450ed4385e6e884036b53 Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Sat, 12 Dec 2020 12:00:51 -0800 Subject: [PATCH] pass `base_url`, not just `hostname` through to manifest generation this change realigns with older Hyrax behavior that used the protocol from the current controller's request as part of the argument to the IIIF image URI generator. --- app/controllers/concerns/hyrax/works_controller_behavior.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/hyrax/works_controller_behavior.rb b/app/controllers/concerns/hyrax/works_controller_behavior.rb index 2303203415..48a9462b88 100644 --- a/app/controllers/concerns/hyrax/works_controller_behavior.rb +++ b/app/controllers/concerns/hyrax/works_controller_behavior.rb @@ -147,7 +147,7 @@ def iiif_manifest_builder def iiif_manifest_presenter IiifManifestPresenter.new(search_result_document(id: params[:id])).tap do |p| - p.hostname = request.hostname + p.hostname = request.base_url p.ability = current_ability end end