Open local files with HyperLink

Hi!

As we can use mailto: scheme to open our local mail client I’ve tried to use file: scheme to open local file explorer but it doesn’t work. It only opens a blank tab because it is not recognized as a valid href attribute.
Has someone already tried something about this and found a solution? Or is it not possible due to security reasons?

Thanks in advance for your help!

It is indeed for security reasons. Grist uses DOMPurify to sanitize URLs, which whitelists safe schemes. There is an explanation here: How does DOMPurify ensure that sanitized HTML is safe for injection into the DOM? - DOMPurify (see “URI and Protocol Validation” section)

1 Like