Skip to content

Commit

Permalink
fix: Fixed an issue where the Subpath wasn't being included for remot…
Browse files Browse the repository at this point in the history
…e volumes like S3 & Google Cloud ([#403](#403))
  • Loading branch information
khalwat committed May 9, 2024
1 parent a5e7a3b commit fb17fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imagetransforms/ImageTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function purgeUrl(string $url): bool
public function getAssetUri(Asset $asset): ?string
{
$volume = $asset->getVolume();
$assetPath = $asset->getPath();
$assetPath = $volume->getSubpath() . $asset->getPath();

// Account for volume types with a subfolder setting
// e.g. craftcms/aws-s3, craftcms/google-cloud
Expand Down

0 comments on commit fb17fd8

Please sign in to comment.