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

Update Relative Links

val3344val33447k downloads

Update relative links.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates8

中文

Plugin function

Obsidian's implementation of the "Automatically update internal links" option is buggy. After the file is moved, only the links to this file will be automatically updated, and the links to other files in this file will not be updated. This plugin is used to solve this problem. There is also a command to batch fix all existing links.

For example, there are two files as follows:

dirA/fileA:

[fileB](../dirB/fileB.md)

dirB/fileB:

[fileA](../dirA/fileA.md)

After moving fileA from dirA to dirB:

dirB/fileA:

[fileB](../dirB/fileB.md)

dirB/fileB:

[fileA](fileA.md)

The function of this plugin is to fix [fileB](../dirB/fileB.md) in dirB/fileA to [fileB](fileB.md).

Instructions

The plugin contains two functions:

The first function: After the file is moved, the relative path of the link is automatically fixed. Once the plugin is installed and enabled, moving files is triggered automatically, no further action is required.

The second function: batch fix links in all files to relative paths. Open the command palette (the default shortcut is Ctrl + P), search for "Update all relative links", and press Enter to execute.

Plugin restrictions

The Use [[Wikilinks]] option must be turned off to use Markdown's link syntax. The point of using relative paths is also to make notes more generic, and if you are also using Wiki Links, there is no need to use relative paths.

Why use relative paths

One of the great advantages of Obsidian is that the notes are composed entirely of Markdown files, so there is no need to worry about migration. Use relative paths to make notes more versatile. For example, use other Markdown editors to view and edit notes. If you sync your notes with Git, you can also view your notes directly on the web. If you don't use relative paths, links in notes will only be recognized in Obsidian.

76%
HealthGood
ReviewCaution
About
Update relative Markdown links automatically when files move, fixing links inside moved files and in other notes that reference them. Run a command to batch-fix relative links across the vault. Use Markdown link syntax (disable wiki-style [[links]]) for proper operation.
LinksFilesAutomation
Details
Current version
2.1.4
Last updated
7 months ago
Created
4 years ago
Updates
8 releases
Downloads
7k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
val3344val3344
github.com/val3344/obsidian-update-relative-links
GitHubval3344
  1. Community
  2. Plugins
  3. Links
  4. Update Relative Links

Related plugins

Advanced URI

Control everything with URI.

QuickAdd

Quickly add new notes or content to your vault.

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Auto Link Title

Automatically fetches the titles of links from the web.

Note Refactor

Extract note content into new notes and split notes.

Vault Changelog

Maintain a changelog of recently edited notes.

Link Embed

Convert URLs in your notes into embeded previews.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.