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

Stéphane Guillou (stragu) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.6.6.3 release             |6.0.7.3 release
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |stephane.guillou@libreoffic
                   |                            |e.org
                URL|                            |https://forum.openoffice.or
                   |                            |g/fr/forum/viewtopic.php?t=
                   |                            |68683
         Whiteboard| QA:needsComment            |

--- Comment #4 from Stéphane Guillou (stragu) 
<[email protected]> ---
Thanks for the report.

I tested these steps:

1. Open Writer
2. Tools > Options > Load/Save > General > both "Save URLs" options are checked
(which are the default values)
3. Link some text using Insert > Hyperlink > Internet > Document > Path:
./target.pdf
Result 1: the link does not work when used inside Writer.
Message is: "./target.pdf" cannot be passed to an external application to open
it (e.g., it might not be an absolute URL, or might denote no existing file).
Similar issues:
-
https://superuser.com/questions/1675026/libreoffice-relative-link-to-another-docx-on-local-system-not-working
-
https://ask.libreoffice.org/t/hyperlink-failure-local-link-cannot-be-passed-to-an-external-application-to-open-it/67822
- bug 118594
The issue is that entering the path by hand won't work, but using the file
picker button next to the field will work. It _will_ display an absolute path
in the dialog, which looks wrong according to the settings we have in Options,
but the path is actually saved in relative form in the file. You can confirm
that by then exporting the PDF:
4. Export PDF to the same directory as the target
5. Open PDF and test the link: works
6. Move file together to a different directory, test again: works

Essentially, the root issue is that the dialog displays an absolute path when
we chose to store relative paths, leading to users trying alternative methods
like entering the path by hand. So I am marking as duplicate of bug 128216.
I hope that makes sense, and that using my steps above (using "Document"
instead of "Internet" in the Hyperlink dialog), you can make it work!

Tested with:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

*** This bug has been marked as a duplicate of bug 128216 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to