LibreOffice 24.8 abi
Hüperlinke lisades tuleb arvestada kaht tegurit: kas need salvestatakse suhteliste või absoluutsetena ja kas fail on olemas või mitte.
Choose Load/Save - General and specify in the Save URLs relative to field if LibreOffice creates relative or absolute hyperlinks. Relative linking is only possible when the document you are working on and the link destination are on the same drive.
-You should create the same directory structure on your hard disk as that which exists in the web space hosted by your Internet provider. Call the root directory for the homepage on your hard disk "homepage", for example. The start file is then "index.html", the full path being "C:\homepage\index.html" (assuming Windows operating system). The URL on your Internet provider's server might then be as follows: "http://www.myprovider.com/mypage/index.html". With relative addressing, you indicate the link relative to the location of the output document. For example, if you placed all the graphics for your homepage in a subfolder called "C:\homepage\images", you would need to give the following path to access the graphic "picture.gif": "images\picture.gif". This is the relative path, starting from the location of the file "index.html". On the provider's server, you would place the picture in the folder "mypage/images". When you transfer the document "index.html" to the provider's server through the File - Save As dialog, and if you have marked the option Copy local images to Internet under - Load/Save - HTML Compatibility, LibreOffice will automatically copy the graphic to the correct directory on the server.
An absolute path such as "C:\homepage\graphics\picture.gif" would no longer function on the provider server. Neither a server nor the computer of a reader needs to have a C hard drive: operating systems such as Unix or macOS do not recognize drive letters, and even if the folder homepage\graphics existed, your picture would not be available. It is better to use relative addressing for file links.
Link veebilehele, näiteks "www.näidis.ee" või "www.teenusepakkuja.ee/minuleht/index.html" on absoluutne link.
LibreOffice käitub erinevalt vastavalt sellele, kas fail, millele link viitab, on olemas või mitte ja kus see asub. LibreOffice kontrollib kõiki uusi linke ja määrab automaatselt sihtmärgi ja protokolli. Tulemust näeb pärast lähtedokumendi salvestamist genereeritud HTML-koodis.
Kehtib järgmine reegel: suhteline viide ("pildid/pilt.gif") on võimalik ainult siis, kui mõlemad failid asuvad ühel kettal. Kui failid paiknevad erinevatel ketastel sinu süsteemis, järgib absoluutne viide "file:" protokolli ("file:///data1/xyz/pilt.gif"). Kui failid asuvad erinevates serverites või kui lingi sihtmärk pole saadaval, kasutab absoluutne link "http:" protokolli ("http://data2/abc/pilt.gif").
Kontrolli kindlasti, et kõik sinu kodulehekülje failid asuksid samal kettal, kus paikneb avafail. Sel moel saab LibreOffice määrata kindlaks protokolli ja sihtmärgi ning viited serveris on alati õiged.
Kui jätad hiire hüperlingi kohal seisma, näitab kohtspikker absoluutset viidet, sest LibreOffice kasutab seesmiselt absoluutseid asukohti. Täielikku asukohta ja aadressi näeb alles siis, kui vaatad HTML-i eksportimise tulemust, avades HTML-faili "tekstina" või tekstiredaktoris.