Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Better Relative Wikilinks

FractalFractal32 downloads

Uses relative wikilink paths instead of absolute paths when filenames conflict.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

An extremely lightweight Obsidian plugin that makes [[wikilinks]] cleaner.


Disclaimer: This plugin is meant to work with the setting "Files and links > New link format" set to Shortest path when possible. If you do not use that setting, turn this plugin off. It won't break, but it will have confusing behavior.

Normally, when you create a wikilink in obsidian, it shows up as just the note name. (e.g. [[notes]])

But what if you create a wikilink to notes, but you have 2 or more notes of the same name? In that case, Obsidian creates a direct path, which looks something like this: [[work/summer/meetings/notes]]

This is fine and all, but having an entire long path in your link is inconvenient when the note you are referencing is right next to the active note.

This plugin fixes that. It changes Obsidian's behavior so that when a wikilink has no conflicting names, it stays nice and clean with a single [[name]], and when there IS a conflict, it replaces it using a relative path instead of a direct path, which looks something more like this: [[../meetings/notes]], and the path gets shorter the closer together the notes are. (e.g. [[./notes]] for a note in the same folder)

If the relative path backs up all the way to the main vault anyways, (e.g. [[../../../schedule/dinner]]) it uses a normal direct path instead to be cleaner. ([[schedule/dinner]])

Without Plugin:

  • Non conflicting link: [[notes]]
  • Conflicting link: [[work/summer/meetings/notes]]

With Plugin:

  • Non conflicting link: [[notes]]
  • Conflicting link in the same folder: [[./notes]]
  • Conflicting link in a lower folder: [[./meetings/notes]]
  • Conflicting link in a higher folder: [[../../notes]]
  • Conflicting link in a different root folder: [[vacations/notes]]

Note: There IS a existing setting called Path from current file under "Files and links > New link format", but that applys to every link, so you get things like [[../../contacts/john]], even if you only have 1 note called john in your entire vault.

This plugin keeps the default [[document]] formatting when possible, keeping your links nice and tidy.

Usage

Usage is very simple, install the plugin on Obsidian, make sure the setting "Files and links > New link format" set to Shortest path when possible, and you're set.

(Wikilinks also have to be turned on, obviously.)

Creating new [[wikilinks]] now uses the behavior mentioned above.

Disabling the plugin will revert the behavior back to default, but please keep in mind that this plugin does not modify any existing wikilinks.

Note: This plugin only creates native Obsidian wikilink formats, so all links will still work perfectly if you remove the plugin.

HealthExcellent
ReviewPassed
About
Keep your [[wikilinks]] tidy! Better Relative Wikilinks changes Obsidian's default wikilink conflict management behavior to use relative paths (e.g. [[../meetings/notes]]) instead of direct paths (e.g. [[work/summer/meetings/notes]]) when filenames conflict. If there is no conflict, it uses the shorthand (e.g. [[notes]]), just like normal!
LinksFormatting
Details
Current version
1.0.3
Last updated
Last week
Created
Last week
Updates
4 releases
Downloads
32
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
FractalFractalfractal
GitHubfractalscripts
  1. Community
  2. Plugins
  3. Links
  4. Better Relative Wikilinks

Related plugins

Better Paste

Removes tracking from links, fetches page titles, and cleans up pasted text from AI chats, terminals and PDF documents.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Admonition

Admonition block-styled content.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Advanced URI

Control everything with URI.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.