You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I have found an bug when using the media.preview_image
with the filter image_tag. If no alternative text is set for the image, the fallback does not work as described in the documentation.
Hello
I have found an bug when using the media.preview_image
with the filter image_tag. If no alternative text is set for the image, the fallback does not work as described in the documentation.
{{ media.preview_image | image_url: width: 200 | image_tag: loading: 'lazy' }}
output:
<img src="<url>.jpg?v=1706541167&width=200" alt srcset=<url>.jpg?v=1706541167&width=200 200w" width="200" height="200">
expected output:
<img src="<url>.jpg?v=1706541167&width=200" alt="fallback text" srcset=<url>.jpg?v=1706541167&width=200 200w" width="200" height="200">
workaround:
{{ media.preview_image | image_url: width: 200 | image_tag: loading: 'lazy', alt: media.tag }}
The text was updated successfully, but these errors were encountered: