getUnresolvedBacklinks
getUnresolvedBacklinks(destName: string): ReadonlySet<string>Returns files that contain unresolved links (links to files that don’t exist) matching the given name.
Parameters
destName— The unresolved link target name (e.g.,"non-existent-page"). Lowercased automatically.
Returns
ReadonlySet<string> — vault-absolute paths of files containing the broken link.
Notes
destNameis the raw link text fromunresolvedLinks, not a vault path.- Obsidian’s
unresolvedLinksmay include external link display text (e.g.,"Markdown"from[Markdown](https://...)). This is an Obsidian behavior, not a library issue. - Sources include non-markdown files (e.g.,
.canvas).
Example
const sources = cache.getUnresolvedBacklinks("non-existent-page");
// Returns files that have [[non-existent-page]] as a broken linkRelated
- getBacklinksForFile — for resolved links