summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-11-25 15:30:56 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-11-25 15:30:56 +0100
commit1b1966a1441f03a70069e19f49c926e52d15d604 (patch)
tree0ce8e7011b3de905d591315ad8273dcf5ca87cbf
parent3226129036f042d2135663638c0fc517f9a400d1 (diff)
downloadorg-mode-1b1966a1441f03a70069e19f49c926e52d15d604.tar.gz
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>
-rw-r--r--lisp/ox-publish.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el
index 957b0da..b6d79f9 100644
--- a/lisp/ox-publish.el
+++ b/lisp/ox-publish.el
@@ -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