Moving/renaming a note changes the internal links that point to the same note

Hi, I would like to add a table of contents to the beginning of a note in standard markdown e.g.

- [Tasks](#tasks)
- [Meetings](#meetings)
...

This works fine until I move the note, then the links get updated with the note name

- [Tasks](note-name#tasks)
- [Meetings](note-name#meetings)
...

Which breaks them in other markdown editors (I use 1writer on ios).

I move notes often so updating links is great where it is a separate note. Is there any way to avoid adding the note name if it is the current note?

Thanks

3 Likes

That looks like a bug

Steps to reproduce

  1. Create a file with an internal link to a heading or block in the same file (e.g. [[#Some Heading]])
  2. Rename the file

Expected result

Links should remain unchanged, so that link text is just the heading name

Actual result

File name is added to the links, changing how the text reads and is formatted. (E.g. a sentence like “the [Items for review] are below” becomes “the [Some File Name > Items for review] are below”.)

Environment

  • Operating system: Windows
  • Obsidian version: 0.11.13

Additional information

For those needing a workaround: rename the file while it’s open in an editor, then focus the editor and use undo to revert the changes (assuming you’re not using the file’s actual name anywhere on purpose).

will be fixed 0.11.14

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.