normalizePath() removes a leading /

Mac & Linux style absolute paths become relative paths if passed to normalizePath():


The result is: users/username/folder/ So an absolute path has became a relative path, which might not work, depending on current directory.

For Windows normalizePath() works almost correctly if the path starts e.g. with C:\Users\. The only issue with this is that backslashes \ are replaced with forward slashes / (should this be discussed in another topic?).

Some Windows paths have the leading slash problem, too:


The result is: network/path instead of \\network\path.

Obsidian version: 0.12.15