CDN for Joomla replaces path but also removes...

Search
Other Bug Reports questions
Forum

CDN for Joomla replaces path but also removes necessary whitespace

huub's Avatar huub
Hello,

I try to use the CDN For Joomla extension, but unfortunately this plugin doesn't respect the whitespaces:
<picture> 
	<source media="(min-width: 1200px)" data-srcset="images/kimage-1200.png, images/ 2x" /> 
	<source media="(min-width: 992px)" data-srcset="images/kimage-992.png,   images/ 2x" /> 
	<img data-src="images/kimage.png" data-srcset="images/ 2x" alt="Kimage" class="lazyload" width="100" height="40" /> 
</picture>

This block of code uses the data-srcset, but when the plugin replaces the paths it doesn't respect the space between the comma and the following url
<picture> 
	<source media="(min-width: 1200px)" data-srcset="//cdnurl.com/images/kimage-1200.png,//cdnurl.com/images/ 2x" /> 
	<source media="(min-width: 992px)" data-srcset="//cdnurl.com/images/kimage-992.png,//cdnurl.com/images/ 2x" /> 
	<img data-src="//cdnurl.com/images/kimage.png" data-srcset="//cdnurl.com/images/ 2x" alt="Kimage" class="lazyload" width="100" height="40" /> 
</picture>

You see the first 2 source media srcset needs a space between the comma and the following url. The plugin removes this space, and so the image doesn't load correctly.
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
huub's Avatar huub
Ok awesome thank you. Is this the same as the normal version? But only with this fix? I'm hoping it does not contain bugs (that's mentioned on the page 😜)

Thanks for the quick support! It works great!
Peter van Westen's Avatar Peter van Westen ADMIN
It only contains the fix.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in