[Libreoffice-bugs] [Bug 127816] New: HTML-Export: relative link in docx files is not preserved

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 27 09:15:44 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127816

            Bug ID: 127816
           Summary: HTML-Export: relative link in docx files is not
                    preserved
           Product: LibreOffice
           Version: 6.3.1.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: marc.bessieres at eurocontrol.int

Description:
When a docx containing a relative link to another document is saved in html,
then the href tag is empty

Steps to Reproduce:
1. In attachment you can find 2 files, document_linking.docx and
linked_document.docx. document_linking.docx contains a relative link to
linked_document.docx
2. Place both files in the same directory then you can click on the link in
document_linking.docx and it'll open linked_document.docx

3. Save document_linking.docx in html format
File -> Save As... -> HTML document (Writer) (.html)


Actual Results:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
        <meta http-equiv="content-type" content="text/html;
charset=iso-8859-1"/>
        <title></title>
        <meta name="generator" content="LibreOffice 6.3.1.2 (Linux)"/>
        <meta name="author" content="BESSIERES Marc"/>
        <meta name="created" content="2019-09-17T09:08:00"/>
        <meta name="changedby" content="BESSIERES Marc"/>
        <meta name="changed" content="2019-09-19T11:49:00"/>
        <meta name="AppVersion" content="16.0000"/>
        <meta name="DocSecurity" content="0"/>
        <meta name="HyperlinksChanged" content="false"/>
        <meta name="LinksUpToDate" content="false"/>
        <meta name="ScaleCrop" content="false"/>
        <meta name="ShareDoc" content="false"/>
        <style type="text/css">
                @page { size: 8.27in 11.69in; margin: 1in }
                p { margin-bottom: 0.1in; direction: ltr; line-height: 115%;
text-align: left; orphans: 2; widows: 2; background: transparent }
                a:link { color: #0563c1; text-decoration: underline }
        </style>
</head>
<body lang="en-GB" link="#0563c1" vlink="#800000" dir="ltr"><p
style="margin-bottom: 0.11in; line-height: 108%"><a name="_GoBack"></a>
<font color="#0563c1"><u><a href=""><font face="Arial,
serif">linked_document.docx</font></a></u></font></p>
</body>
</html>


Expected Results:
the href field shouldn't be empty and should be a path to the linked document
like:
<a href="linked_document.docx">linked_document.docx</a>


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 6.3.1.2
Build ID: b79626edf0065ac373bd1df5c28bd630b4424273
CPU threads: 8; OS: Linux 3.10; UI render: default; VCL: gtk3; 
Locale: en-US (C); UI-Language: en-US
Calc: CL

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190927/aecfb5fd/attachment.html>


More information about the Libreoffice-bugs mailing list