Hello, Martin Hans <martinhan...@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