image-url icon indicating copy to clipboard operation
image-url copied to clipboard

Add method to include originalFilename (or custom file name) in URL for SEO

Open IsaacMorrier opened this issue 4 years ago • 3 comments

Sanity supports preserving an image's original file name (or including a custom file name) by including it after the hashed name, but before, parameters with this format: https://cdn.sanity.io/images/{project-id}/{dataset}/{hashed-name}/{originalFilename}?params..

Without that, it's the hashed name that gets indexed by search engines, instead of a descriptive file name that could get the image to show up in searches for it.

image-url would become much more useful for projects that need SEOd images if it were easy to include the original file name or a custom file name with a url builder method.

IsaacMorrier avatar Nov 20 '21 16:11 IsaacMorrier

👀

mylesthedev avatar Jun 09 '22 00:06 mylesthedev

👀

leigler avatar Jul 29 '22 05:07 leigler

👀

henrybabbage avatar Sep 11 '23 21:09 henrybabbage