Validation errors on image urls #105
Replies: 1 comment
-
|
Fixed: craftcms/cloud-extension-yii2#98 Thanks for the report, @fredrik-sogaard . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using Craft Cloud and getSrcset (or image.url) on assets, it produces a url with character [ and ], which is not valid in urls.
It's the gravity[x] paramter that causes the validation error. I can't find this syntax in the Cloudflare docs (I assume you use Cloudflare?), and it seems like they want to use XxY as a parameter.
Example url:
https://cdn.craft.cloud/864fa136-d90f-4ef6-95e4-8e2527f341f1/assets/images/Nyhetssak-musikk-tek-form-v2.jpg?width=800&height=1000&fit=cover&gravity[x]=0.4831&gravity[y]=0.9175&s=XvAmUvEuz87llgGezVFXIbli3FLO3qkrHE2Eh8Ph0JMI opened an issue here: craftcms/cloud-extension-yii2#98 , but I'm not getting any feedback there, it seems, so I'll ask it here.
Beta Was this translation helpful? Give feedback.
All reactions