Links need to be updated when a new file with existing name is added to the vault to maintain consistency

Links may need to be updated when a new file is added to the vault that has the same name of a file already present in the vault to maintain consistency. This is important in shortest path mode as it currently may lead to link hijacking.

Assume I have /note.md with a link to [[image.jpg]] and the image is in /assets/image.jpg.
If I add a new image as /image.jpg, the link in /note.md will be silently redirected to this new image.

Therefore, when anything is added to vault, Obsidian should check the links for consistency and update them if necessary.

2 Likes

Should check the path an not the name