Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I noticed that org-babel-result-to-file never expands file: links in src block results when ran from indirect buffer and default-directory is not same with base buffer file's directory. This is against the docstring stating that > If the `default-directory' is different from the containing > file's directory then expand relative links. The misbehavior happens because buffer-file-name variable is always nil in indirect buffers. We need to call (file-name-directory (buffer-file-name (buffer-base-buffer))) instead. The patch is attached. Best, Ihor