Closed tomdavies closed 7 months ago
@tomdavies Just released v4.0.2 which adds support for the new volume subpath. After some discussion, we opted for a /environment/subfolder/subpath/filePath
path structure like you suggested. Also, for custom URL patterns defined in the Servd plugin settings, the subpath will folded into the {{ filePath }}
placeholder.
Thanks for raising!
Craft 5 introduces the ability to re-use Filesystems across multiple Asset Volumes, but it looks like the Servd plugin doesn't support that feature yet.
Detail
Craft: 5.0.0-RC1 Servd Assets and Helpers 4.0.1
It appears that where an Asset Volume is configured to both:
subfolder
setsubpath
within in the selected filesystem in the Asset Volume settingsImage Transform URLs are incorrectly formed, in that they include the
subfolder
from the FS settings, but not thesubpath
from the Asset volume settings. i.e URLs look like this:when they should look like this:
Example / steps to reproduce
Given the following config
FS settings:
Asset Volume settings:
An
image.png
asset uploaded to theimages
Asset Volume will have transform URLs generated of the format:When they should be of the format: