On 19/09/2020 19:56, Regina Henschel wrote: > Hi Dave, > > please excuse, same in English:
No problem. Your English is a million times better than my tiny understanding of German. > Regina Henschel schrieb am 19-Sep-20 um 20:47: >> Hi Dave, >> >> Dave Barton schrieb am 19-Sep-20 um 16:33: >>> 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. >> > > You create the hyperlink with Ctrl+K and then Document? > > Do not try to manually enter the link, but _always_ use the button at > the right side of the Target input field. Of cause the target needs to > be already in the same folder as the text file. > > Be not confused by the shown text. It does not show, what is stored in > the file. The link is stored as relative. Such links are usually stored > as relativ, even if not in the same folder. Only if a target is on a > different drive, the link is absolute. > > If you are unsure about the saved text, open the file e.g. with 7Zip and > look into the content.xml. You will find the link starting with ../ > > Kind regards > Regina Hi Regina, Many thanks for taking the time to reply. The odt document and the linked files are all in the same local directory. I open the hyperlink dialog either by the menu, toolbar or keyboard Ctrl+K. I do not manually enter the link. In the hyperlink dialog I select the "Open File" button to the right of "Document > Path", see: http://www.mediafire.com/view/33hc7qwbjtc7dlp/Hyperlink_Dialog.png/file Selecting the file from the open file dialog ALWAYS adds the full (ABSOLUTE) path to the hyperlink in the document. Maybe I have misunderstood or misinterpreted your explanation, but I cannot find anything in the hyperlink dialog that provides an option to create a RELATIVE hyperlink to to another file. I should add that part of my reason for asking this question is that if I can get this to work it will form the basis of a section in the next edition of our official Writer Guide, so so telling our readers to unzip odt files is definitely not an acceptable option. Thanks & Kind Regards Dave -- To unsubscribe e-mail to: [email protected] Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy
