Relative path: Link points to a wrong file with same file name

Thanks.
This is related to: https://forum.obsidian.md/t/in-relative-path-mode-always-add-in-front-of-links-for-files-in-subdirectories-relative-to-the-current-file/25063