Links to external files in the 3 possible situations (Preview Mode, Edit Mode, and Embed) on Windows 10 generally misbehave. I’m not sure which of the below methods is recommended, though I’d wish that all would work. The fact that certain methods fail differently is particularly weird, as is the need for file:///
(with 3 forward slashes in Windows) for the only case that works in all 3 link situations (see Additional Information).
Steps to reproduce
Attempt to link to an external file via any of the following:
-
[no](<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
-
[no](file:<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
-
[no](file:///<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
This file should exist for any Windows 10 computer, I think it’s a default one…
Expected result
Link should be clickable in either Edit or Preview mode. Adding !
embeds the gif
.
Actual result
In Preview Mode
- Nothing Happens
- Empty ‘Open With’ Prompt
- Windows 'Cannot find
<File>
’ Error
Embedded gif
works:
- Yes
- No
- No
In Edit Mode:
- Empty ‘Open With’ Prompt
- Nothing Happens
- Windows 'Cannot find
<File>
’ Error
Environment
- Operating system:
Windows 10
- Obsidian version:
v0.11.5
Additional information
Full Testing File: (make a new note in the Help Vault to test)
-
/
vs\
(native Windows) makes no difference - The only one that works is
file:///
“Encoded” (i.e.[](file:///C:\Path\To%20File.gif)
- (# of/
must be 3)- 3 makes no sense for Windows…
# Attempts made in Help Vault
file: `C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif`
---
## Block Escaped (\< File \>)
> [(Edit) Empty 'Open With' | (Preview) nothing](<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
> 
---
### `file:` Block Escaped
>[(Edit) nothing | (Preview) Empty 'Open With'](file:<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
> 
---
### `file:///` Block Escaped
> [(Edit & Preview) Cannot Find \<File\>](file:///<C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif>)
*# of `/` doesn't matter*
> 
---
## "Encoded" (*no spaces in the first place*)
> [(Edit) Works! | (Preview) Nothing](C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif)
> 
---
### `file:` "Encoded"
> [(Edit) Works! | (Preview) Nothing](file:C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif)
> 
---
### `file:///` "Encoded"
> [(Edit) Works! | (Preview) Works!](file:///C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\Assets\search.gif)
*# of `/` doesn't matter*
> 
# Now with `/` instead of native `\`
file: `C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif`
---
## Block Escaped (/< File />)
> [(Edit) Empty 'Open With' | (Preview) nothing](<C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif>)
> 
---
### `file:` Block Escaped
>[(Edit) nothing | (Preview) Empty 'Open With'](file:<C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif>)
> 
---
### `file:///` Block Escaped
> [(Edit & Preview) Cannot Find \<File\>](file:///<C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif>)
*# of `/` doesn't matter*
> 
---
## "Encoded" (*no spaces in the first place*)
> [(Edit) Works! | (Preview) Nothing](C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif)
> 
---
### `file:` "Encoded"
> [(Edit) Works! | (Preview) Nothing](file:C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif)
> 
---
### `file:///` "Encoded"
> [(Edit) Works! | (Preview) Works!](file:///C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/Assets/search.gif)
*# of `/` **matters!***
> 