Skip to content

Commit

Permalink
Merge pull request #940 from Islandora/issue-939-iiif-manifest-canvas…
Browse files Browse the repository at this point in the history
…-ids

Remove double-slash from IIIF canvas Ids.
  • Loading branch information
wgilling authored May 4, 2023
2 parents e4fbbb3 + e8712d8 commit 66401ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function render() {
$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;
Expand Down

0 comments on commit 66401ba

Please sign in to comment.