Skip to content

Commit 13a340e

Browse files
authored
Exclude workspace when linking to a file (#1372)
* Exclude workspace when linking to a file
1 parent d2dd979 commit 13a340e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/foam-vscode/src/features/preview/wikilink-navigation.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export const markdownItWikilinkNavigation = (
4646
? `${resource.title}${formattedSection}`
4747
: alias;
4848
const resourceLink = `/${vscode.workspace.asRelativePath(
49-
toVsCodeUri(resource.uri)
49+
toVsCodeUri(resource.uri),
50+
false
5051
)}`;
5152
return getResourceLink(
5253
`${resource.title}${formattedSection}`,

0 commit comments

Comments
 (0)