Convert existing Wikilinks from shortest to absolute path

What I’m trying to do

I’d like to switch to absolute path Wikilinks as I find them more robust for handling links to two notes of same name that are located in different directories.

Let’s say my Wikilink is [[Math]], while the path to the file is “Semester1/Math”. I want to convert this Wikilink to absolute path format, so that it becomes [[Semester1/Math]], or even [[Semester1/Math|Math]] which is Obsidian’s behavior when using absolute path.

Things I have tried

With the “Link Converter” plugin from Ozan Tellioglu, I first tried converting one Wikilink from shortest to absolute path just to see how the plugin works. The only current line/selection related options I see in command pallete are:

  1. Link Converter: Editor Selection: Links to Wiki
  2. Link Converter: Editor Selection: Links to Markdown

Option 1 doesn’t change the link at all, even tho I selected the absolute path option in plugin settings. The workaround I found is to use option 2 and then option 1 but because of this bug, any link to a note that has parentheses in the name (like “Math (1)”) gets destroyed. (it becomes [[1)](Math (1|Math (1)]].md) )

Also, doing the 2-step workaround will convert Markdown links pointing to Youtube videos into invalid Wikilinks, if the alias contains parentheses. Example:
What does the Laplace Transform really tell us? A visual explanation (plus applications) - YouTube gets converted into
[[plus applications) - YouTube](https://www.youtube.com/watch?v=n2y7n6jw5d0|What does the Laplace Transform really tell us? A visual explanation (plus applications) - YouTube]]


Is there some other way not involving this plugin? Any suggestion is appreciated.

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