Skip to content

[Dynamic media] [image] Image v3 src attribute is set in a wrong way #3014

@nicufarmache

Description

@nicufarmache

I found an issue in the way the the image v3 frontend sets the src attribute

This line sets back the html encoded version of the src which I believe is wrong because later when the width gets replaced

SRC_URI_TEMPLATE_WIDTH_VAR whis is {.width} won't be found in the string and it will break the link

So the already decoded src ...wid={.width}...gets replaced with the encoded one ...wid=%7B.width%7D... and then the replacement doesn't work anymore resulting in a broken src attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions