Fixed CDN url not used when attaching.