That is a drag, Craig.
As noted on Using Hook with Obsidian – Hook:
The current integration of Hook with Obsidian makes use of
hook://file/ URLs. (We go to some lengths to ensure that
hook://file/ URLs can cope with the movement of the files to which they refer, and even further.)
as background: When you use the
Copy Link command, Hook returns a URL that has a “scheme”. The scheme depends on the app and how Hook interacts with the app. We have documented the Principles That Determine the URL Scheme Returned by
Copy Link for a Given App . Generally, if an app defines its own URL scheme,that is what
Copy Link and
Copy Markdown Link link will return. For instance, in DEVONthink, hook returns
x-devonthink-item URLs by default. In OmniFocus, you get OmniFocus:// URLs. In Obsidian you get
obsidian:// links. In web browsers you tend to get http:// or https:// URLs.
App developers are implicitly responsible for doing their best to ensure their URLs remain valid. Hook cannot guarantee the integrity of URLs of third party apps (as implied on the apps page). For instance, if you copy a link to a website, and the website developer changes the URL for that resource, then the link will break. However, I would be very surprised if the URLs served by established apps like DEVONthink, OmniFocus and the like were to break. we ourselves do our best to maintain the validity of the URLs (
hook://file/, etc.) we define.
In any event, I have updated Using Hook with Obsidian – Hook to note this issue.
The issue warrants a bug report with Obsidian. (I recall doing some tests, and thought I had tested renaming of files, but my notes are sketchy on that. I would have thought that brittle links would be quickly discovered by Obsidian users. So perhaps this is a recent bug.) Meanwhile, I would recommend if you can, re-establishing the previous directory structure, until Obsidian rectifies the issue, assuming they will. On the Linkable Mac Apps – Hook we list Obsidian as: “ Obsidian”, linking that entry to Using Hook with Obsidian – Hook. There we note that Obsidian is still beta software.