diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index e171a90ab..df6cfed64 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2738,11 +2738,15 @@ INFO is a plist holding contextual information. See (org-export-get-reference destination info) (or desc (org-export-get-ordinal destination info)))) ;; Link to a file, corresponding to string return value of - ;; `org-export-resolve-id-link'. + ;; `org-export-resolve-id-link'. Export it is file link. (plain-text - (format "%s" - destination - (or desc (org-export-get-ordinal destination info)))) + (let ((file-link (org-element-copy link))) + (org-element-put-property file-link :type "file") + (org-element-put-property file-link :path destination) + (org-element-put-property + file-link + :raw-link (format "file:%s" destination)) + (org-odt-link file-link desc info))) ;; Fuzzy link points to some element (e.g., an inline image, ;; a math formula or a table). (otherwise