Browse Source

Issue #939: Fix incorrect IIIF Manifest canvas Ids.

MNPALS-2.x
Alexander O'Neill 2 years ago committed by Rosie Le Faive
parent
commit
06dd1651ac
  1. 2
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

2
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -136,7 +136,7 @@ class IIIFManifest extends StylePluginBase {
$request_url = $this->request->getRequestUri();
// Strip off the last URI component to get the base ID of the URL.
// @todo assumming the view is a path like /node/1/manifest.json
$url_components = explode('/', $request_url);
$url_components = explode('/', trim($request_url, '/'));
array_pop($url_components);
$content_path = implode('/', $url_components);
$iiif_base_id = $request_host . '/' . $content_path;

Loading…
Cancel
Save