Bring back/revert option for automatically adding an alias to links with a vault path

Use case or problem

In 1.10.6 and prior releases, creating a link with the link format set to relative or absolute path would automatically include an alias of that file’s name, rendering the link as just the file name but retaining the exact path details. ie [[Tech/Hardware/Consoles/Consoles|Consoles]]rendered as Consoles

In 1.11.0 and above this behaviour was removed (confirmed intended on discord but not in release notes) so relative and absolute links just autocomplete the path with no alias, thus renderring as the entire path, rather than just the file name. ie [[Tech/Hardware/Consoles/Consoles]]rendered as Tech/Hardware/Consoles/Consoles

Issues this causes for my uses:

  1. Links are now not naturally readable in text or are extremely long and clutterd such as in Properties and Bases views. Presenting as Tech/Hardware/Consoles/Consoles rather than Consoles
  2. If I change to using shortest path link setting, if the file name is no longer unique in my vault then all links of this will be expanded to full path in the vault, running into the unreadable issue from 1. ie all links of Consoles in short path mode expand to Tech/Hardware/Consoles/Consoles

My reasons for using full path include number 2. as well as providing the path of a property link as searchable content when queried in a base. ie you may have a bunch of notes with a property of “RelatedNotes” which all link to “Playstation 3”, “Nintendo Wii” and “Xbox 360”. These consoles notes are located in a path containing “Console” so with .contains Bases filtering you can find all notes that are related to Consoles just by searching “RelatedNotes” for “Consoles”. As opposed to doing a multi term search for every relevant console in your vault.

Proposed solution

Include 2 extra options in the New Link Format dropdowns which are “Relative path to file with Alias” and “Absolute path in vault with Alias.” These options would behave how linking did prior to 1.11.0, including the filename alias automatically.

This retains the functionality created by non-aliased links whilst also offering the legacy behaviour.

Current workaround

Revert to 1.10.6 for the legacy behaviour or manually include the alias for every link that is created

13 Likes

I’d love to have an option where (absolute path) links automatically use the note title as display text. The paths are great for stability, but in body text the full path often hurts readability. This used to be a really nice balance in my workflow.

2 Likes

Please add an option to bring this feature back. This totally breaks my workflow.

3 Likes

I second this.

1 Like

We have used this feature for years in a shared vault. I don’t understand the decision changing this behavior as it is a long standing workflow. Keeping it as an option would be great.

2 Likes

It took me 15 minutes to vibe-code a plugin to autocomplete custom link name based on filename. If anyone is interested i can look into how to publish it.

3 Likes

Please do!

1 Like

I would also vote to bring back the old behavior, if possible. Every time I make a link, I only want the name showing, not the full path.

Also, with the new behavior, if you rename a page, it doesn’t touch the aliases anymore, meaning you’d have to do your own manual find/replace to fix them all yourself.

3 Likes

Also, with the new behavior, if you rename a page, it doesn’t touch the aliases anymore, meaning you’d have to do your own manual find/replace to fix them all yourself.

:index_pointing_up:This!

I was really surprised and dissappointed when I saw this feature was removed (quietly).

I consider this is a performance-related decision, but in the other hand it breaks also my worflow, especially with that alias-updating-thing being removed.

Please, bring it back!

3 Likes

Why can’t this be reverted? I have used obsidian for a long time and never had any issues. It was very frustrating to see this and go on a goose chase to find people with the same issue. Can I manually allow aliases or something? I am sorta tech illiterate so I don’t know how to do that, this would make obsidian very clunky to use. Something it is was built not to be?

1 Like

Damn so this goes even deeper. Atleast we could’ve been informed. My workflow was a bit damaged, but I guess I’ll have to manage somehow. Obsidian doesn’t feel like the trusty all reliable tool now. Gotta deal with the manual ways.

I rethinked that and I guess I could deal without this function, but I still see some space for improvements. Especially, adding alias for a link to a file without unique name should be more straight-forward (instead of manually reversing typing pointer before ]] braces and adding | and then the alias).

But anyway, I am still surprised, because that was a breaking change and it was released without a proper warning.

Or maybe there was a warning that I omitted? I thought I more or less read a changelog but I am not sure…

My workflow has been destroyed, I hope they come back with this option.

2 Likes

I was relying on the old behavior every time I made a link. This really damages my workflow. Could it be kept as an option?

1 Like

As others have said, I didn’t spot this in the changelog which is a bit concerning.

We have 14 licence seats who will all be affected by this workflow change, so we’re hoping this will be reverted or added back as an option.

1 Like

I have noticed this now as well, this is really bothersome when using Properties

1 Like

I made a plugin to fix this issue: A plugin that re-implements pre-1.10.6 link alias behaviour

2 Likes

Adding my agreement to this. This has been a really bothersome change and I can’t find any reasoning behind it. I’m considering reverting to an old version of Obsidian unless this gets re-implemented. It’s extremely frustrating for it to not even be an option, and I don’t want to rely on quickly-made community plugins to get around what should be a built-in option.

2 Likes

This will be reverted in version 1.11.5. No ETAs.

6 Likes