From c7063b05f7b254428f20a2f9ae3999f7294c5ba8 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 18 Apr 2020 18:22:28 +0200 Subject: [PATCH] publish: Fix site-map file name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/ox-publish.el (org-publish-sitemap): Use `expand-file-name' to build site-map file name. Reported-by: juanjose.garcia.ripoll@csic.es (Juan José García Ripoll) --- lisp/ox-publish.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 674e6252a..7bb2fed6e 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -754,7 +754,8 @@ Default for SITEMAP-FILENAME is `sitemap.org'." (let* ((root (expand-file-name (file-name-as-directory (org-publish-property :base-directory project)))) - (sitemap-filename (concat root (or sitemap-filename "sitemap.org"))) + (sitemap-filename (expand-file-name (or sitemap-filename "sitemap.org") + root)) (title (or (org-publish-property :sitemap-title project) (concat "Sitemap for project " (car project)))) (style (or (org-publish-property :sitemap-style project)