When using CDN with or without imagecache, url() does not check for the existence of the actual file. Check for the files parent directory if we've deemed the location to be "local" to the drupal installation and call file_create_url() instead so both imagecache and CDN will work with pathologic.
Only drawback with this patch is sometimes the imagecache directory doesn't exist and thus we fall back to the url() call to make sure no links break.
Supplied it a patch, which is working on a production site: http://widescreengamingforum.com/
| Comment | File | Size | Author |
|---|---|---|---|
| cdn-pathologic.patch | 935 bytes | crackerjackmack |
Comments
Comment #1
Garrett Albright commentedhook_url_outbound_alter() should work for this now.