From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Dead links from clocking tables to other org files in HTML export [9.1.3 (9.1.3-2-g322612-elpa @ /home/mrhn/.emacs.d/elpa/org-20171120/)] Date: Sun, 26 Nov 2017 10:50:09 +0100 Message-ID: <87efoltlm6.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eItZo-0004Hl-2a for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:50:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eItZl-0003oL-0n for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:50:16 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44733) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eItZk-0003nD-QV for emacs-orgmode@gnu.org; Sun, 26 Nov 2017 04:50:12 -0500 In-Reply-To: (Martin Hans's message of "Fri, 24 Nov 2017 13:00:52 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Hans Cc: emacs-orgmode@gnu.org Hello, Martin Hans writes: > When exporting my project with org-publish, the exporter generates > anchors with names such as "orga79e495" and refers to them when linking > to the headers from other files. However, the generated anchor names > don't match between files, resulting in all links being dead. > > Furthermore, the publishing directory is not respected, so all links > still point to the directory that the org file was in, even though the > html files are located elsewhere. > > Example: > > I have put the files needed to reproduce this at > https://gist.github.com/martinhansdk/f81a5fdf340eab591e6df55645cfd22d > They can be viewed there or fetched with git: > > git clone https://gist.github.com/martinhansdk/ > f81a5fdf340eab591e6df55645cfd22d > > Run emacs -Q -l minimal-org.el > > Then export with M-x org-publish org > > I get files in the exported/ subdirectory. > > The last link in the clocking table in exported/time.html is > > journal.html#org2f3d7f7">Worked on supporting =C3=A4, =C3=B6, and =C3=BC<= /a> > > But that should have been > > Worked on supporting =C3=A4, =C3= =B6, and =C3=BC > > Note that both the path is absolute where it should have been relative > and the anchor is wrong. Fixed. Thank you. > As an aside, is there any way to prevent the following line from > appearing in the exported HTML? > > #+BEGIN: clocktable :scope agenda :link t :maxlevel 5 I cannot reproduce it. Regards, --=20 Nicolas Goaziou