I want to use a bases formula that creates a link pointing to a local file on my computer.
Things I have tried
I know that the following works:
In my notes I use external links. Either of the following syntaxes works there:
[Link](file:///Users/xyz/Downloads/Filename%20With%20Spaces)
[Link](<file:///Users/xyz/Downloads/Filename With Spaces>)
When I add the value "file:///Users/xyz/Downloads/Filename%20With%20Spaces" to my “LinkToFile” property and display this property in my base, it appears as an external link and correctly opens the file.
However, if I now use a formula to generate the same string ("file:///Users/xyz/Downloads/" + "Filename%20With%20Spaces"), it is only shown as plain text. When I apply the link() function to this string, it displays as an external link, but it doesn’t open the file. I also tried using the external-link syntax that works in my notes, but it didn’t work in this case either.
Back then, however, the formula versions worked when the base was embedded (code block or link embed) but didn’t work directly in the .base file. A few people confirmed, and the team repro-ed.
But testing anew in the latest release, I think the formula versions work in neither context. That is, it no longer works in embedded contexts.