The hrefs in the links in the Table of Contents of my exported HTML file all have the form
The './' prefix is bogus and causes the web browser to attempt to open the file #__RefHeading__56812_1229477905 at the base URL instead of going to the fragment in the same file.
This might be a duplicate of bug# 40097. However the problem description in 40097 is unclear.
I cannot attach the source file here because this is a public list, and I do not have permission to release the document publicly, but will be glad to send it to whoever works on this bug, if they need it. The source is a single .odt file.
This bug seems to have been inherited from OpenOffice.
Change summary to match apparent convention.
This happens in files created by File > Export > XHTML. A file created by File > Save As > HTML does not have this problem.
Peter Jentsch committed a patch related to this issue.
It has been pushed to "master":
fix fdo#56595 - FILESAVE: ToC links broken in xhtml export
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Fixed on master. fdo#40097 is unfortunately not resolved by this fix
With the patch in comment #3, I confirm the latest build exports the document with a working ToC. Only two remaining defects prevent near perfect export: bugs 56598 and 57538.
VERIFIED as FIXED
with LOdev 18.104.22.168.alpha1+ (Build ID: 519c947f213ec69b0c92d3ea76193270644263e; pull time: 2012-11-28 04:07:39) on Mac OS X 10.6.8 (Intel).
The './' prefix is gone, the links work fine now.
@ Peter Jentsch :
Thank you for fixing this issue!