| Summary: | FILESAVE: ToC links broken in xhtml export - hrefs start with bogus './' | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | callow.mark |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | VERIFIED FIXED | ||
| Severity: | normal | CC: | bugs |
| Priority: | medium | ||
| Version: | 3.6.2.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=40097 | ||
| Whiteboard: | target:4.0.0 | ||
| Crash report or crash signature: | Regression By: | ||
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": http://cgit.freedesktop.org/libreoffice/core/commit/?id=2a9c7f044f03533604e34216d5b8f6e217609832 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: http://wiki.documentfoundation.org/Testing_Daily_Builds 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 4.0.0.0.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! |
The hrefs in the links in the Table of Contents of my exported HTML file all have the form ./#__RefHeading__56812_1229477905. 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.