Context
I’m trying to convert all my internal backlinks to include the relative path to the file.
Here is my current configuration with the Shortest path when possible
option enabled:
Let’s say I have the following folder structure:
└── vault/
├── stock/
│ ├── NASDAQ.md
│ ├── DOWJONES.d
│ └── AMAZON.md
└── invest.md
Inside the invest.md file are the followings backlinks with the Shortest path when possible
:
# Stocks
[[AMZN]]
[[BA]]
[[CVS]]
[[GOOGL]]
Then I activate the option of making internal links have the relative path to file
:
But this only works on the new backlinks. It doesn’t work on the current backlinks. So the existing files stay like this:
## After enabling the relative path to file option. Backlinks stay the same.
# Stocks
[[AMZN]]
[[BA]]
[[CVS]]
[[GOOGL]]
Expected result
To convert all the current backlinks and new ones to include the Relative path to file
.
From the shortest path
backlinks:
# Stocks
[[AMZN]]
[[BA]]
[[CVS]]
[[GOOGL]]
Convert to relative path to file.
# Stocks
[[Stock/AMZN]]
[[Stock/BA]]
[[Stock/CVS]]
[[Stock/GOOGL]]
Current Situation:
Enabling the “Relative path to file” option does not retroactively convert existing internal links to the relative path format.
Manually updating each existing internal link to use the relative path format would be time-consuming and inefficient. Is there any way of transforming all existing backlinks to include the relative path to file?