Fix relative image URL in gridsome

Hi, I am using Gridsome with Strapi, I have added the upload field in a new collection type. The problem is that the image that isn’t displayed in the content has the relative path and not absolute. Can i fix it?

Take a look here:

@Lowell130 I would also recommend creating a middleware that runs at the final step finds all the keys that contain the relative paths and modifies them. This approach is to avoid modifying every controller.

1 Like