Shaarli: file:// URLs get converted to http://

Created on 25 Aug 2020  路  3Comments  路  Source: shaarli/Shaarli

Local URLs added with the "Shaare a new link" page or the Shaarli webextension have the file:// string replaced by http://

Imported bookmarks are stored correctly but clicking the link doesn't do anything.

Editing an existing file:// bookmark will turn it into http://

Tested with Shaarli 0.11.0 and Firefox.

browser question

All 3 comments

You can allow to add file:// URL in your configuration file with the setting security.allowed_protocols. It takes a list of allowed protocols in shaare URLs or markdown-rendered descriptions (default: ["ftp", "ftps", "magnet"]).

https://shaarli.readthedocs.io/en/master/Shaarli-configuration/#security

Thank you, that solves 1 and 3 but not 2: clicking or middle-clicking any file:// bookmark won't open the page in Firefox like it does for http(s) URLs. Browser issue?

@cy7yz2rj this is a limitation/security feature of the browser. There seems to be several workaround, I don't know which ones actually work

I recommend caution before disabling this feature in your browser as it could lead to malicious javascript being able to access to your local files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

llune picture llune  路  7Comments

immanuelfodor picture immanuelfodor  路  9Comments

virtualtam picture virtualtam  路  9Comments

electricflock picture electricflock  路  10Comments

phil-dyer picture phil-dyer  路  10Comments