emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Martin Hans <martinhansdk@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87efoltlm6.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CANiugrj+nQ+1E27eXqCpj1WnAWHbdTG8oC+mahePPYyTW+QkTg@mail.gmail.com> (Martin Hans's message of "Fri, 24 Nov 2017 13:00:52 -0800")

Hello,

Martin Hans <martinhansdk@gmail.com> 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
>
>     <a href="file:///home/mrhn/bugreports/orgmode-html/
> journal.html#org2f3d7f7">Worked on supporting ä, ö, and ü</a>
>
> But that should have been
>
>     <a href="journal.html#org5c71d1e">Worked on supporting ä, ö, and ü</a>
>
> 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,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-11-26  9:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-24 21:00 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/)] Martin Hans
2017-11-26  9:50 ` Nicolas Goaziou [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-22  0:02 Martin Hans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efoltlm6.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=martinhansdk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).