When I upload image and add this to image field by ‘Select Image’ in image url I get only file name with extention e.g.
When I add image by ‘Select Asset’ in image url I get full url for image but starting from cockpit directory e.g.
It causes a problem when I working with
@fika/gatsby-source-cockpit plugin and want to use image with
gatsby-transformer-sharp plugin because the
value attribute for image filed in graphql query is invisible when the image url is incorrect. When i set image url by ‘Enter Image Url’ to
/storage/uploads/2019/10/24/image.jpg everyting works great and
value attribute with
childImageSharp and others attributes appears in graphql query and it works, image loads with lazy loading and blur effect.
But when i set image url to
/storage/uploads/2019/10/24/image.jpg image preview diasppears in cockpit panel.
This same problem is with gallery field type but in this case I cant set image url by ‘Enter Image Url’ because this option in unavailable in gallery field.