Closed (fixed)
Project:
Acquia DAM
Version:
1.2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
30 Mar 2026 at 10:41 UTC
Updated:
7 Jul 2026 at 09:35 UTC
Jump to comment: Most recent
When syncing or embedding media assets from Acquia DAM, the module utilizes the asset's file name as a fallback string for the alt text attribute when an explicit alternative text is not provided.
Currently, this fallback includes the raw file extension (e.g., image-name.jpg or company-logo.png). It looks unpolished in the user interface if an image fails to load.
alt text uses a clean media name without a file extension (e.g., alt="company-logo").alt text includes the raw file extension (e.g., alt="company-logo.png").Modify the media name fallback logic within the module to strip the file extension using a sanitization path helper or regular expression before setting it as the alt text fallback attribute.
| Comment | File | Size | Author |
|---|---|---|---|
| remove-file-extension-from-alt-text-fallback.patch | 1.79 KB | sudishth |
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 #4
rajeshreeputraCreated MR for quick review and merge, code coverage will be added soon.
Comment #5
rajeshreeputraComment #7
rajeshreeputraMR merged!