Steps to reproduce
- Drag a file on a network drive into a note whilst holding control
- Switch to Preview mode and click the generated link
File to open in default app.
Windows error saying it canot locate the file. Note that Ctrl + clicking the link in edit mode functions correctly.
- Operating system: Windows 10
- Obsidian version: v0.11.3
The error is because obsidian doesn’t escape the \ in the path of the network drive. e.g. “\\share\folder” is copied as is and thus in preview this makes the link “\share\folder”. This can be corrected by adding an extra \ when creating the URI (i.e. \\\share\folder).
Edit note: The exact thing of not escaping “\” occurred here in this post - edited so displays correctly.