app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.11.0 vs app/presenters/spotlight/iiif_manifest_presenter.rb in blacklight-spotlight-2.12.0

- old
+ new

@@ -72,13 +72,10 @@ def endpoint IIIFManifest::IIIFEndpoint.new(iiif_url, profile: 'http://iiif.io/api/image/2/level2.json') end def iiif_url - Spotlight::Engine.config.iiif_url_helpers.info_url( - uploaded_resource.upload.id, - host: controller.request.host_with_port, - protocol: controller.request.protocol - ).sub(%r{/info\.json\Z}, '') + # yes this is hacky, and we are appropriately ashamed. + controller.riiif.info_url(uploaded_resource.upload.id).sub(%r{/info\.json\Z}, '') end end end