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

Command icon 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

attilatilman created an issue. See original summary.

attilatilman’s picture

Assigned: Unassigned » attilatilman

mglaman’s picture

Status: Active » Needs review
mglaman’s picture

Status: Needs review » Reviewed & tested by the community

rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Version: 1.1.7 » 1.1.x-dev
Status: Reviewed & tested by the community » Fixed

MR merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.