Hi Regina & all,
Even though I was following instructions to the letter I must have been
doing something wrong wrong yesterday. Today I started the computers
(Win 10-2004 x64 & Linux Kernel 5.8 x64) running LO 18.104.22.168, opened the
odt file and the relative links worked perfectly. I am still unsure of
how to explain the appearance of absolute paths over the links when
writing up the user guides, but that is a different issue.
Having got the odt file working, I am now looking for a way to get those
relative links working in an exported PDF copy of the file. I have tried
several different export options, but clicking the links in the PDF file
always returns the "File <Absolute Path> not found" error.
Any thoughts or suggestions about this would be welcome.
Thanks for all your help.
On 19/09/2020 23:05, Regina Henschel wrote:
I have now used an English UI, and now the correct fields. Open
Hyperlink-dialog, click Document. Click "Open File" button at the ride
side of the Document Path field.
I have tried with system open file dialog and with LO's own dialog. It
works in both cases. Ctrl-click opens e.g. a linked .odt file in
I work on Windows 10. What OS do you use? Perhaps there is an error in
DaveB schrieb am 19-Sep-20 um 23:22:
On 19/09/2020 20:01, Robert Großkopf wrote:
I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.
The links will be saved als relative links in the file. Try to move the
file to another folder - together with the other documents. It will
Have a look in the *.odt-file in content.xml:
<text:a xlink:type="simple" xlink:href="../LibreOffice/Bilder_gross.odt"
will open the document Bilder_gross.odt, which is in a subfolder of the
document I have created.
For documents you could set in the further settings for a Hyperlink:
Text: "My Document". Then there will be shown only the name "My
Document" for the document. Not the absolute path to the file, which is
saved only for the shown text in the document, not for the real path to
the file. This information of the path is misleading.
Many thanks for taking the time to reply.
If you look at my original post and my reply to Regina the odt file and
the hyperlinked files are are already in the same directory, so I see no
reason why moving them to another location would change anything.
It really doesn't matter what appears in content.xml. The critical point
is that keyboard Ctrl+click on the hyperlink in the odt file generates a
"not an *absolute* URL" error.
Sorry if I have misunderstood or misinterpreted the explanation you and
Regina have kindly given, but I need to clearly explain this for
inexperienced users in the next edition of the official LibreOffice
To unsubscribe e-mail to: email@example.com
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Re: [libreoffice-users] Create a relative hyperlink to file? · Stephan Bergmann
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy