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
I've observed on several sites that some pages throw JS errors due to the picture replacement and lazy loading ending at the wrong point. This seems to especially affect page builder category descriptions with an image, but I'm not sure if it's limited to that.
This isn't a perfect example given other processing the module does, but this shows how the current regex is too greedy. The [0] match goes all the way to the %> price filter tag.
Environment
Magento 2.4.5-p10
Hyva theme 1.3.10
Yireo WebP 0.14.3
NextGenImages 0.5.10
Issue
I've observed on several sites that some pages throw JS errors due to the picture replacement and lazy loading ending at the wrong point. This seems to especially affect page builder category descriptions with an image, but I'm not sure if it's limited to that.
Example wrong output:
Pardon it all being on one line, but that's how it is in the source (possibly related).
Note particularly:
The other instances I've noticed of this issue have been similar if not identical.
Possibly related
The image matching code was changed recently.
#82
#84
867ef31#diff-56e9cb219161815f1d7336e26a686ab654e4ce468c6cf20463274e162a7b4ffdR116
The code was changed in 0.5.10. I downgraded to 0.5.9 and that seems to work better. I haven't seen the case that fixes yet.
The text was updated successfully, but these errors were encountered: