diff --git a/Classes/S3Target.php b/Classes/S3Target.php index 99a505f..8f273b2 100644 --- a/Classes/S3Target.php +++ b/Classes/S3Target.php @@ -242,7 +242,11 @@ public function publishCollection(CollectionInterface $collection, callable $cal */ public function getPublicStaticResourceUri($relativePathAndFilename) { - return $this->s3Client->getObjectUrl($this->bucketName, $this->keyPrefix . $relativePathAndFilename); + if ($this->baseUri != '') { + return $this->baseUri . $relativePathAndFilename; + } else { + return $this->s3Client->getObjectUrl($this->bucketName, $this->keyPrefix . $relativePathAndFilename); + } } /**