Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the first image path linked in srcset gets rewritten with CDN-URL #6

Open
ulilu opened this issue Jul 27, 2016 · 1 comment
Open

Comments

@ulilu
Copy link

ulilu commented Jul 27, 2016

Hi there,
I just installed the CDN plugin to work with KeyCDN (via pullzone). Everything is fine, except for images that have srcset-attributes. When I add "srcset" as tag attribute in the plugin settings, only the first image path inside srcset gets updated with the CDN path - all other paths remain the same (= relative paths on the root server).

@ulilu
Copy link
Author

ulilu commented Jul 27, 2016

Addendum

This is the twig command that produces the srcset:

{{ page.media[page.header.image].quality(60).derivatives(400, 1600, 300).sizes('100vw').html(page.title, page.title, page.header.imagealign) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant