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

Remove errant colons in filter params #12

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Conversation

johnnywalker
Copy link
Contributor

I'm unsure if Storyblok's API changed, but this module currently builds URLs with a colon between the filter name and argument. This causes Storyblok's image service to ignore the filter parameters and return unoptimized images.

Example URL built with extra colons:
https://img2.storyblok.com/1000x1000/smart/filters:quality:(50):format:(webp)/f/39898/3310x2192/e4ec08624e/demo-image.jpeg

Correct URL:
https://img2.storyblok.com/1000x1000/smart/filters:quality(50):format(webp)/f/39898/3310x2192/e4ec08624e/demo-image.jpeg

@arkgor
Copy link
Contributor

arkgor commented Sep 10, 2020

Thanks @johnnywalker !

@arkgor arkgor merged commit 0412d39 into bejamas:master Sep 10, 2020
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

Successfully merging this pull request may close these issues.

2 participants