Description: Hyperlink created in LO with bookmark target is broken after DOCX export when the bookmark name contains white space. Steps to Reproduce: 1. Create a new document in Writer. 2. On the Insert tab, choose Bookmark. 3. Click Insert. 4. Type text. 5. On the Insert tab, choose Page Break. 6. On the Insert tab, choose Hyperlink. 7. Select Document and click on icon below Target in Document. 8. Select the bookmark in Target in Document window. 9. Click on Apply button, and then click on Close button in Target in Document window. 10. Click on OK button. 11. Save the file as DOCX. 12. Reload the file. Actual Results: The hyperlink doesn’t work. Expected Results: The hyperlink should work after export. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice details: Version: 6.4.0.0.alpha0+ (x64) Build ID: ec3a14ba93ba0be49170afa979f299bbf9e24300 CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; Locale: hu-HU (hu_HU); UI-Language: en-US Calc: threaded
Created attachment 153588 [details] Screenshot of the problem in Writer.
Created attachment 153589 [details] Example ODT file from Writer.
Created attachment 153590 [details] The original file saved as DOCX.
Thank you for reporting the bug. I can confirm that the bug is present in: Version: 6.4.0.0.alpha0+ (x86) Build ID: 5c30c20101f72d973ff28c228f755e635cad14d5 CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; Locale: pl-PL (pl_PL); UI-Language: en-US Calc: threaded Version: 6.3.0.4 (x64) Build ID: 057fc023c990d676a43019934386b85b21a9ee99 CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; Locale: pl-PL (pl_PL); UI-Language: en-US Calc: threaded
Tünde Tóth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/79939168b47ae9c8089c93f88ed322dff67203fe%5E%21 tdf#127116 DOCX export: fix hyperlink to bookmark target with spaces It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.