Developer forum

Forum » Feature requests » Rendering img srcset like img src on pagetemplates

Rendering img srcset like img src on pagetemplates

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

When a page template is rendered, the image src content is replaced with the absoulute path. but the srcset is not being replaced.

the srcset image path should be replaced with absolute path just like the src tag.

Sometimes we upload static content, and this would make it a lot easier to publish static content

/Hans


Replies

 
Nicolai Pedersen
Reply

Hi Hans

I am not sure that is the case - that src is replaced, at least not in new versions.

Srcset can contain a lot of information with several urls and size configurations so it is not possible for us to parse it correctly without loosing too much performance. You will have to take care of it in the implementation.

BR Nicolai