Created attachment 202601 [details] A sample RTF with hyperlink with backslashes The RTF is simplified from what Word 2016 generated. The system path in it is c:\temp\doc1.doc. According to RTF spec 1.9.1 (which points to OOXML), the backslashes in field text must be escaped with a second backslash. That gives field text of c:\\temp\\doc1.doc. Then to save this to RTF, which itself uses backslash as a special character (starting keywords), every backslash must be escaped with another backslash. This produces c:\\\\temp\\\\doc1.doc; and indeed, Word created exactly that string in the RTF. It must be reversed to original c:\temp\doc1.doc on import; but Writer imports c:\\temp\\doc1.doc. Ref: https://ask.libreoffice.org/t/125994/
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0863f0c4ed983b05c2d86cb42283518e38a77320 tdf#168181: process field backslash escaping properly It will be available in 26.2.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.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/13eee625a31b5aa0c4bd7d52a7df9e897a093ba0 tdf#168181: process field backslash escaping properly It will be available in 25.8.2. 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.