Description: Hyperlink in docx created in MSO and saved again in LO as docx and opened in MSO doesn’t work as usual in MSO because when it gets clicked it doesn’t change its colors to bright red. Steps to Reproduce: 1. Create a docx in MSO. 2. Insert→ Hyperlink→ Adress: https://libreoffice.org→ Ok. 3. Save and exit the file. 4. Open the file in LO and save it as docx. 5. Close the file. 6. Open the file in MSO. 7. Try activating the Hyperlink. Actual Results: The Hyperlink stays as its basic dark blue color. Expected Results: The Hyperlink changes to its already visited bright red color. Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 149483 [details] Saved from the original file in LO.
Created attachment 149484 [details] Original file in Word.
Created attachment 149485 [details] Screenshot of the original document side by side in Word and Writer.
Thank you for reporting the bug. I can confirm the bug present in Version: 6.3.0.0.alpha0+ Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87 CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04 Locale: en-US (en_US); UI-Language: en-US Calc: threaded
Repro with LibO 3.3.0 and MSO 2013.
Created attachment 154407 [details] Screenshot of example files in Word and Writer This is happening because Word uses the character style "Hyperlink" to format hyperlinks, and it recolors them on clicking. Writer on the other hand uses the character style "Internet Link" to format hyperlinks and Word is not prepared to handle that the same way as Hyperlink. Manually changing this "Internet Link" character style in Word to "Hyperlink" made the example link colored as visited. So we should probably just export this character style with a different name.
Tünde Tóth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0ddd856af3a9383dc2c6a9a95fd5dc4bfdfeaf7d tdf#123628 DOCX export: fix color change of unvisited hyperlinks 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.
After the fix, when LO-saved DOCX is opened in MSO, link color changes on click. I'll set Verified. Observations: - link color change is not saved in MSO, - link color is not changed in LO.
(In reply to Timur from comment #8) > After the fix, when LO-saved DOCX is opened in MSO, link color changes on > click. I'll set Verified. > > Observations: > - link color change is not saved in MSO, > - link color is not changed in LO. @Timur: thanks for your review and feedback. It seems, the real problem is still the bad import of the plain hyperlinks. Importing hyperlinks from an ODT file doesn't change the "Default" character style of the hyperlink. Maybe this related to the hardwired "Internet_20_link". I suggest to transform the next bug 127925 into the real issue (and we can revert this fix later, if needed).