Plugin Author
Aaron
(@aaron13100)
What you’re saying sounds reasonable, but I want to make sure I understand the issue exactly.
Is there a slug for a page and for a slug for an image that are similar and so are causing issues? Like website.com/fancypost/ and website.com/fancypost.jpg and the wrong one is coming up? Can you give me the specifics?
thanks
Thread Starter
nickth
(@nickth)
Yep, here’s an example of an image redirecting to a blog post: http://prntscr.com/fx24ej
Plugin Author
Aaron
(@aaron13100)
I see. Let me think about the best way to improve this…
Plugin Author
Aaron
(@aaron13100)
Does the image exist and it’s just been moved/renamed or does the image not exist anymore?
Plugin Author
Aaron
(@aaron13100)
I guess I don’t see any good reason for an image URL to redirect to a page. If the URL begins with /wp-content/uploads/ it makes sense for it to only forward to something within the subdirectories there.
How does that sound for functionality for you Nick?
I think that images aren’t generally renamed so I question whether redirection should ever happen for images at all. Say “skateboard1.jpg” is deleted for some reason. Do we really want it to redirect to “skateboard2.jpg?” Or perhaps to some default “image not found” image. That may be worse depending on the use of the broken URL. What happened to your image? What’s the ideal outcome of a bad image URL for you?
thanks
Plugin Author
Aaron
(@aaron13100)
I’m closing this for now since I have no user feedback or suggestions on what the functionality should be.
If anyone has some ideas just let me know.