Forbid Link’s alias update

Use case or problem

Double-linking in obsidian supports aliasing links that automatically update the link when updating the file name corresponding to the link.

I’ve noticed that when the file name is the same as the link’s alias, updating the file name causes the alias to be modified at the same time (which doesn’t happen when they are different).

Example:Updating file name “AAAA” —> “AAAABBB”,and the alias in link change the same way:

PixPin 2024-08-08 16-46-18

Adding aliases to links is meant to make the link coherent in context, and it doesn’t seem necessary to update the aliases at the same time.

Proposed solution

Do not change the alias when renaming the file.

3 Likes

Absolutely. Always seemed like a bug to me. Adding to this - while it might sound a little odd to have a scenario where an alias is the same as the file name, I’d like to be able to do this regularly when linking words in quotes. Before I create the referenced file, I may not know what canonical term to create and so I just create the link as [[word a|word a]] and expect that when I create the entry for ‘word a’ that I may change the filename… and leave ‘word a’ as an alias.