Links Reference
Wikilinks
[[Note Name]] Link to note
[[Note Name|Display Text]] Custom display text
[[Note Name#Heading]] Link to heading
[[Note Name#^block-id]] Link to block
[[#Heading in same note]] Same-note heading linkObsidian tracks a wikilink when its target is renamed; a Markdown link to a vault path is not tracked the same way.
Block identifiers
Define a block ID by appending ^block-id to any paragraph:
This paragraph can be linked to. ^my-block-idFor lists and quotes, place the block ID on a separate line after the block:
> A quote block
^quote-idTargets that are not Markdown notes
Obsidian resolves a bare wikilink stem to a Markdown note. For every other file type, keep the extension in the link, as Obsidian's internal-link documentation requires:
[[Team Board.canvas]] Canvas file
[[Team Board.canvas|Board]] Canvas file with display text
[[Reading List.base]] Base file
[[Architecture Diagram.png]] Image file
[[Handbook.pdf]] PDF file[[Team Board]] is a different link: it reaches a Markdown note of that name if one exists, and otherwise stays unresolved. It never proves that the Canvas was reached.
When several files share a basename, which one a bare link reaches depends on the source note's own location, so include enough of the vault-relative folder path to make the target unambiguous:
[[Projects/Team Board.canvas]]Destination resolution
Obsidian resolves link text relative to the note that contains it, so a destination is only correct with respect to that note. Through the app's supported scripting surface:
app.metadataCache.getFirstLinkpathDest(linkpath, sourcePath)linkpathis the destination text only: no[[]]delimiters, no|display text, no#headingor#^block-idsubpath. For[[Projects/Team Board.canvas|Board]]it isProjects/Team Board.canvas.sourcePathis the vault-relative path of the note that holds the link.nullmeans the link is unresolved.- A returned file whose
pathdiffers from the intended vault-relative target is a wrong destination, even though nothing reports it as unresolved. - "The note has no unresolved links" is not the check. Unrelated links and intentional placeholders say nothing about whether this destination is right.
- When the app or its index is unavailable, report destination resolution as unverified. A file of the same name existing on disk is not resolution evidence, because a bare stem may resolve elsewhere.