Unexpected link text change when renaming files

I created a file named a, and in other notes I referenced it like this: [[a|a]].
My intention was to keep the displayed text stable, so that if I renamed the file later, the visible label (a) would not change.

However, Obsidian doesn’t behave as I expected.
When I rename a to b, the link changes from [[a|a]] to [[b|b]], instead of what I expected: [[b|a]].
In other words, both the target and the display text are updated, but I only want the target to change while the display text stays the same.

The only workaround I’ve found is to add an alias 'a' to the file. While this works, it feels unnecessarily cumbersome.

I believe the correct behavior for links in the form of [[a|a]] should be:

  • Update only the target (the part before the |)
  • Keep the display text (the part after the |) unchanged.

There is a feature request asking for the behavior you expect. You can support it by commenting or by pressing the heart button under the main post.

1 Like

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