Fix cross-references from %-encoded links in publishing

* lisp/ox-publish.el (org-publish-resolve-external-link): Decode
  search string.

Reported-by: Martin Hans <martinhansdk@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00328.html>
This commit is contained in:
Nicolas Goaziou 2017-11-25 15:30:56 +01:00
parent 3226129036
commit 1b1966a144
1 changed files with 2 additions and 1 deletions

View File

@ -1154,7 +1154,8 @@ references with `org-export-get-reference'."
(let* ((filename (file-truename file))
(crossrefs
(org-publish-cache-get-file-property filename :crossrefs nil t))
(cells (org-export-string-to-search-cell search)))
(cells
(org-export-string-to-search-cell (org-link-unescape search))))
(or
;; Look for reference associated to search cells triggered by
;; LINK. It can match when targeted file has been published