Steps to reproduce
- In the Options (
) go to page Files and links and turn on Automatically update internal links. - Create a note “Essay about the King of Rock and Roll”
- Write:
[[Elvis Aaron Presley]] was born on January 8, 1935, in Tupelo, Mississippi. - Click on
Elvis Aaron Presleyto create a note with that name. - Rename that new note to
Elvis Presley, e.g. from the context menu in the file navigation. - Go back to the original note and see that the link was updated to
[[Elvis Presley]]
That’s not a bug, you may say, but I disagree. Of course, the link is supposed to be updated. But it should be updated in a way that preserves the original display text of the referencing note:
[[Elvis Presley|Elvis Aaron Presley]].
To stress this even more, repeat above steps but with the original note’s contents being: [[Elvis Aaron Presley|Elvis Aaron Presley]] was born on January 8, 1935, in Tupelo, Mississippi.
Now everything works as expected. After renaming, the internal link becomes [[Elvis Presley|Elvis Aaron Presley]]. This leaves the text that the user sees in reading mode untouched, while updating only the link.
So on a more abstract level, when someone writes [[something]], this is just a shorter way of writing [[something|something]], but link and display text should still be treated separately.
Did you follow the troubleshooting guide?
Yes
Expected result
The internal link should be updated in a way that preserves the original display text of the referencing note: [[Elvis Presley|Elvis Aaron Presley]].
Actual result
The internal link is updated, but if it had its display text not explicitly set, the display text will change, too: [[Elvis Presley]]
Environment
SYSTEM INFO:
Obsidian version: v1.11.5
Installer version: v1.7.7
Operating system: Windows 11 Enterprise 10.0.26100
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none