I understand that I can access per $image->url() the physical path to any given image object. That’s fine and cool and great.
My problem is however, that I often resort my articles depending on personal aspects. When I resort my articles, the panel changes the file structure and therefore google and facebook scraper won’t find my image anymore. Because they cached the original image location. This results in a 404, which is always bad.
So I tested a bit there and here and could verify, that the SEO url (path without number dashes) for images works and redirects per http302 to the real path. Which is probably great. But how can I access the SEO url directly via kirby api? I’am looking for something like $image->permaurl() or $image->seourl().
I dont wan’t to do any hard string modifications on the physical file path itself, like removing the number dash stuff out of the path with regex or do some other nasty stuff. That will probably somewhere/somehow break.
Any ideas? I checked the docs but could not find anything usefull.