diff --git a/Service/PresentationService.php b/Service/PresentationService.php index 537ba90..e97db6f 100644 --- a/Service/PresentationService.php +++ b/Service/PresentationService.php @@ -418,6 +418,7 @@ private function getNavDate(\Subugoe\IIIFModel\Model\Document $document) * @param \Subugoe\IIIFModel\Model\Document $document * * @return Image + * @throws IIIFException */ private function getThumbnail(\Subugoe\IIIFModel\Model\Document $document): Image { @@ -425,7 +426,7 @@ private function getThumbnail(\Subugoe\IIIFModel\Model\Document $document): Imag $thumbnail = new Image(); $thumbnailService = new Service(); - $thumbnailService->setId($this->router->generate('subugoe_iiif_manifest', ['id' => $document->getId()])); + $thumbnailService->setId($this->router->generate('subugoe_iiif_manifest', ['id' => $document->getId()], RouterInterface::ABSOLUTE_URL)); $thumbnailParameters = [ 'identifier' => $document->getPhysicalStructure(0)->getIdentifier(),