Links to local files, using Windows macros, like %USERPROFILE%

I use ALT-drag to create links in my notes to local files or directories and it works well.

I'm trying to find a way to get Windows macros, like
%USERPROFILE%\.config\joplin-desktop\resources
to work in markdown links.

This works:
file:///C:/Users/my_name/.config/joplin-desktop/resources

but these don't

file:///%USERPROFILE%/.config/joplin-desktop/resources
file:///%%USERPROFILE%%/.config/joplin-desktop/resources
file:///%25USERPROFILE%25/.config/joplin-desktop/resources

I'm not sure if the problem is related to encoding, macro expansion or something else.

The string %USERPROFILE%/.config/joplin-desktop/resources works at the command prompt and in FileExplorer.

Version: Joplin 2.2.7 (prod, win32) on Win10-64.

-Jim

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.