Problem/Motivation
The AssetDerivativeWithParametrizedWidth class generates invalid URLs for Canvas responsive images when Acquia DAM asset filenames contain spaces, causing browser console errors and broken srcset attributes.
Steps to reproduce
1. Upload an asset to Acquia DAM with spaces in the filename (e.g., "My Image File.jpg")
2. Use the asset in a Canvas component that generates responsive images
3. View the page source and inspect the generated img tag's srcset attribute
4. Open browser developer console
Expected Behavior
The srcset attribute should contain valid URLs with properly encoded filenames:
<img srcset="https://{domain}.widen.net/content/abc123/jpeg/My%20Image%20File.jpg?q=100&w=480 480w" />
Actual Behavior
The srcset attribute contains invalid URLs with unencoded spaces:
<img srcset="https://{domain}.widen.net/content/abc123/jpeg/My Image File.jpg?q=100&w=480 480w" />
Issue fork acquia_dam-3556648
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
attilatilman commentedComment #4
mglamanComment #5
mglamanComment #8
rajeshreeputraMR merged!