diff options
Diffstat (limited to 'lisp/org/ob-core.el')
-rw-r--r-- | lisp/org/ob-core.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el index 5b78ee946ff..f69538f78c9 100644 --- a/lisp/org/ob-core.el +++ b/lisp/org/ob-core.el @@ -2709,7 +2709,9 @@ specified as an an \"attachment:\" style link." ((and 'attachment (guard in-attach-dir)) "attachment") (_ "file")) (if (and request-attachment in-attach-dir) - (file-relative-name result-file-name) + (file-relative-name + result-file-name + (file-name-as-directory attach-dir)) (if (and default-directory base-file-name same-directory?) (if (eq org-link-file-path-type 'adaptive) |