Fixes issue where local URLs are being stored with CDN urls