Skip to content

Asset data is not being hydrated correctly causing alt text to be filename instead #143

@ncla

Description

@ncla

As requested, separate issue for the alt text issue. This is continuation of this issue. #74

I have created a minimal bug report repository to reproduce the issue. https://github.com/ncla/responsive-image-alt-bug-report

The steps are simple, for blank Statamic install:

  1. Add responsive field to page blueprint
  2. Upload image for responsive field on the "Home" page and save
  3. Through assets browser, open the image you uploaded and edit the alt text
  4. In home.antlers.html just do {{ responsive:image }}

You should see that the alt tag text is output from the filename itself.

The alt text is clearly saved, you can verify that through the asset .yaml file.

data:
  alt: "Don't believe his lies"
size: 706225
last_modified: 1656752941
width: 828
height: 563
mime_type: image/png
duration: null

Rias, let me know if you can reproduce this issue, if not I will try to adjust the repo to get it working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions