Cannot use file:/// link to local HTML files if has an anchor

Linking to a local file with the file:/// URL protocol fails if the URL contains an anchor tag. It looks like Obsidian is parsing the entire URL as a file path instead of passing the entire string through


Linking to a local HTML file (this works):


Linking to an anchored section in the HTML file (this fails in Obsidian but opens correctly in a browser):


“Windows cannot find ‘…the url above here…’ Make sure you typed the name correctly, and then try again.”

We don’t support this. Open a feature request.

have you attempted to URLencode the #?