From fc9563fbd58e6c3ba55a59fe17e12b79e0d5aabc Mon Sep 17 00:00:00 2001 From: bkoschicek Date: Tue, 26 Sep 2023 16:40:39 +0200 Subject: [PATCH] revert changes --- openatlas/api/endpoints/iiif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openatlas/api/endpoints/iiif.py b/openatlas/api/endpoints/iiif.py index 4acb82f30..0aafa6d8c 100644 --- a/openatlas/api/endpoints/iiif.py +++ b/openatlas/api/endpoints/iiif.py @@ -9,7 +9,7 @@ def getManifest(id_): entity = get_entity_by_id(id_) - url_root = app.config['IIIF_URL'] or f"{request.headers.get('Host')}iiif/" + url_root = app.config['IIIF_URL'] or f"{request.url_root}iiif/" # get metadata from the image api req = requests.get( f"{url_root}{app.config['IIIF_PREFIX']}{id_}/info.json")