Local file link that is portable (e.g. Mac to PC)

I understand this can be used as a relative link in the URL field as follows:

file://localhost/Users/ME/Documents/Work/Project/Endnote.Data/pdf/example.html

However, if I change or move the “Endnote.Data” directory to some other folder, the link would not work. Similarly, it would not work on a PC because I need to indicate the drive the file is in. Is there a way around this?

I think something like ~/ or ./ to indicate it is in “Endnote.Data” within the same folder that Endnote.enl is in would be nice.