Is there any way I can set this as the URL for this post?
I want each and every post to have a unique nanoid/url regardless of where it’s placed in the directory or its filename. So even if I change the name or place of the file, later on, the URL shouldn’t be changed.
url will work best if you need everything relative to the root (e.g. example.com/url). So, even if you move files around between folders, the link remains the same. “Slug” behaves like the last part of a path, so if not configured in the configuration file, it might invoke he directory paths before it. Maybe your question could have been a bit clear (do you want the ID to be the URL?)