Closed severdia closed 3 months ago
I figured out why this was happening. It's because the New Link Format setting was set to "Absolute path in vault". Changing this to "Relative path to file" fixed the issue. Maybe there should be a notice in the readme or somewhere in the plugin to check this if it's required?
@severdia no, that was a bug, fixed in https://github.com/dy-sh/obsidian-consistent-attachments-and-links/releases/tag/3.11.0
I had some issues running "Reorganize Vault" so I decided to take each step individually to troubleshoot. I was able to "Replace All Wiki Links with Markdown Links" as the first step and it appears successful. But when I use "Convert All Embed Paths to Relative", many links break because there's an assumption that the attachments are always in the same folder as the note. Here's a before & after example:
The note linking to these images is in a subfolder of "Hiring" and it looks like the plugin is just removing the part of the absolute URL before "attachments" instead of actually checking the hierarchy of the note in relation to the image. Which, of course, results in this:
Here's what that note looks like after running "Replace All Wiki Links with Markdown Links" before running "Convert All Embed Paths to Relative".
The absolute links are correct, but the relative ones aren't.