@brab’s comment was a good hint (V1 does it). Thank you.
Check the value of
org-id-link-to-org-use-id. You probably have it set to
If I set it to
t, I can reproduce what you get. Mine is
You can probably use the
create-if-interactive option by the looks of the variable’s documentation. See if any of them works…
An excerpt from the variable’s documentation below.
t Create an ID if needed to make a link to the current entry.
If ‘org-store-link’ is called directly (interactively, as a user
command), do create an ID to support the link. But when doing the
job for capture, only use the ID if it already exists. The
purpose of this setting is to avoid proliferation of unwanted
IDs, just because you happen to be in an Org file when you
call ‘org-capture’ that automatically and preemptively creates a
link. If you do want to get an ID link in a capture template to
an entry not having an ID, create it first by explicitly creating
a link to it, using ‘C-c l’ first.
Like create-if-interactive, but do not create an ID if there is
a CUSTOM_ID property defined in the entry.
Use existing ID, do not create one.
nil Never use an ID to make a link, instead link using a text search for
the headline text