Relative links are just that - relative. If the file is outside your vault I would suggest you use a full absolute link.
That being said, if the file is inside the vault Obsidian is good at finding the file without a path as long as the file name is unique.