Sometimes I use the diary instead of org-mode to add meetings to the org-agenda, and occasionally these include links to emails or websites in the standard org format: [[https://duckduckgo.com][link here]]. The display looks fine, i.e., the previous link would appear highlighted in blue displaying "link here", but for some reason org-agenda-open-link
or C-c C-o
do not open the link and instead return user-error: Before first headline at position 62615 in buffer .diary
. I can get it to work by using org-open-at-point
or by mouse-clicking the link, but I cannot shake the feeling that this is not normal.
A MWE is a .diary entry containing
21 Mar 2023 Today is a great day (as any other) to surf the web using [[https://duckduckgo.com][this search engine]]
and then if I go to the agenda buffer a "search engine" link shows up on 21 Mar but I cannot open it with C-c C-o (only by mouse clicking it).
So my questions are 1) if org-agenda-open-link
is meant to be used to open such links, and if so, 2) why am I unable to open them with my setup? Thank you in advance for any help.