This was discussed at some length in the author’s bug report Links break when moving/renaming linked files. I’m not sure why that wasn’t included as a related link instead of the image one.
I changed the title to more closely reflect the request (tho it could use another revision; original was “Make broken internal links behave like broken”).