Browse Source

Merge pull request #940 from Islandora/issue-939-iiif-manifest-canvas-ids

Remove double-slash from IIIF canvas Ids.
pull/948/head 2.7.1
Willow Gillingham 2 years ago committed by GitHub
parent
commit
66401baec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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