I have a problem converting relative to absolute links. File.getAbsolutePath() or getAbsoluteFile() do not generate the expected value in situations when a directory is rerouted, e.g. the My documents directory is rerouted to a different disk, from C: to D:. In contrast, basic Freeplane does give the right absolute path if preferences is set to absolute hyperlinks. (I have the same problem on a network where "rerouting" or "virtual pathways" (I do not know the proper name) is applied.

Concrete caseIf I set hyperlinks absolute, and i drag a file then freeplane generates link (uri):file:/D:/Jodi_sync_TrueImage/Desktop/image-filenamame.png

Setting hyperlinks to relative, freeplane generates for this same file uri:../../../../Jodi_sync_TrueImage/Desktop/image-filenamame.png

In the latter situation, applying File.getAbsolutePath() or getAbsoluteFile() I get file:/C:/Jodi_sync_TrueImage/Desktop/image-filenamame.pngThe path is right except for the disk: "C" shoud be "D" ?

Is this a bug or should I use another method from Freeplane to get the absolute path ?