Links generated from chat do not link to existing files; instead, they create new files that point to the existing path

Screen recording of the issue (couldn’t attach it here, so I uploaded it to youtube):

The issue seems to be that the links generated from the chat are absolute paths instead of paths relative to the project root. Even though the path appears to be the same, the leading slash results in a different absolute path.