I found an issue in the way the the image v3 frontend sets the src attribute
|
that._properties.src = options["src"]; |
This line sets back the html encoded version of the src which I believe is wrong because later when the width gets replaced
|
src = src.replace(SRC_URI_TEMPLATE_WIDTH_VAR, width); |
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
I found an issue in the way the the image v3 frontend sets the src attribute
aem-core-wcm-components/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/site/js/image.js
Line 68 in 52c868a
This line sets back the html encoded version of the src which I believe is wrong because later when the width gets replaced
aem-core-wcm-components/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/site/js/imageDynamicMedia.js
Line 158 in 52c868a
SRC_URI_TEMPLATE_WIDTH_VARwhis is{.width}won't be found in the string and it will break the linkSo 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