Setting a permalink breaks the automatically generated OG preview meta image

This is a similar issue as Obsidian Publish: use permalinks in sitemap if that helps. Both the meta image generator and the sitemap use [permalink].md to fetch the contents of the file, but [permalink].md doesn’t exist. Instead, they need to look at the note’s actual file which has a different name.