Description: Hyperlink inserted to image 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. Choose Insert -> Bookmark. 3. Click Insert. 4. Type text. 5. Insert a page break. 6. Insert an image. 7. Select the image. 8. Choose Insert -> Hyperlink. 9. Select Document and click on icon below Target in Document. 10. Select the bookmark in Target in Document window. 11. Click on Apply button, and then click on Close button in Target in Document window. 12. Click on OK button. 13. Save the file as DOCX. 14. Reload the file. 15. Ctrl+Click the image. 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: 1bad7f0b19e47a41a1919573f80785ec62c611af 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 153901 [details] Screenshot of the problem in Writer.
Created attachment 153902 [details] Example ODT file from Writer.
Created attachment 153903 [details] The original file saved as DOCX.
It works for me with double-click. Do you get the same result? Version: 6.4.0.0.alpha0+ (x64) Build ID: 01837a85004a6f891a09c0a63ed7eff75d634827 CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-01_00:07:05 Locale: en-GB (de_DE); UI-Language: en-US Calc: threaded
Confirmed with: Version: 6.4.0.0.alpha0+ (x64) Build ID: 9670abc43051e1f7a3f2ed9369ca9a3748aa7a2b CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; Locale: hu-HU (hu_HU); UI-Language: en-US Calc: CL
(In reply to Tünde Tóth from comment #5) > Confirmed with: > > Version: 6.4.0.0.alpha0+ (x64) > Build ID: 9670abc43051e1f7a3f2ed9369ca9a3748aa7a2b > CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; > Locale: hu-HU (hu_HU); UI-Language: en-US > Calc: CL Tünde, does it work for you with double-click or is it completely broken?
It works for me with Ctrl+double-click. But I click anywhere else, and then I Ctrl+double-click the image: the link broken.
Tünde Tóth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/745f4cc374297a73ff5243cdd42a839e469619e7%5E%21 tdf#127362 DOCX export: fix image hyperlink with space to bookmark target 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.
Verified with Version: 6.4.0.0.alpha0+ (x64) Build ID: 460908269972fd1f89312a1e62897ed1503e9e98 CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; TinderBox: Win-x86_64@42, Branch:master, Time: 2019-09-30_09:18:03 Locale: de-DE (de_DE); UI-Language: en-US Calc: threaded Tünde, thanks for fixing this!