Creating Relative Links with Contribute
Several people have asked how to create a relative link in Contribute. A relative link is a link to a file, image, or other webpage that does not reference the complete domain URL for the link. See the examples at the end of this document. Bear in mind that by default the Contribute client creates links relative to the document root.
Select the text that you wish to be a link. Right-click on the selected text and choose Insert Link from the menu that appears.
In the Insert Link window, choose the type of page/file to link to from the section at the top of the window.
In the bottom left of the Insert Link window, click on the Advanced button.
In the text field labeled HREF, enter the path to the page or file that you wish to link to.
Click the OK button to save your changes to the link properties.
If you click in the link that you just created, you can see what the HREF is by looking in the bottom right of the Contribute window.
The URL for this webpage would be:
Relative to Site Root
Relative to Document Root
My suggestion would be that everyone use links that relative to the site root as much as possible. This ensures that if for some reason the page is moved on the server from one directory to another that the links will still work. There are two possible exceptions to this suggestion:
If the link is pointing to a page that is hosted on a website other than VSU's you will need to use an absolute link.
If the file you are linking to is an image or document such as a PDF or Word file, you might want to just use a link relative to the document.