# normalizePath() removes a leading /

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

``````alert(normalizePath("/users/username/folder/file.md"));
``````

The result is: users/username/folder/file.md. 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:

``````alert(normalizePath('\\\\network\\path'));
``````

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

Obsidian version: 0.12.15