Open tab "~/path/to/file" in Chrome fails, pasting it directly works

Any idea why opening a local file with ~ fails?

Pasting the link directly in Chrome works fine:

~/Library/Racket/7.9/doc/search/index.html

The Action require "file://" protocol along with absolute file path if you want to open the file, and file protocol don't understand ~ (from what I know)

Chrome application can do whatever it want to handle the URL the way it want but KM action is designed to handle the URL in its specific way.

1 Like

First is, as @macdevign_mac noted, you don't have a valid URL.

But you should be able to display the file using the KM Open File and choose "Google Chrome" as the app.

Thanks @JMichaelTX , that worked

1 Like

small update:

Added ~ as a variable so it was passed down; also added "file://" to the URL as @macdevign_mac suggested: