Creating Internal Links

If you need to create a link to a page that lives inside www.labdoo.org (for instance, a link to another wiki page), it's important to use relative paths starting with the string ../. For instance, if you want to create a link to this wiki page, follow this example:

<a href="../content/creating-internal-links">An example link to this wiki page</a>

Which generates this link:
An example link to this wiki page

Using the string ../ in front of your internal links serves two goals:

  • It generates a relative path, so that the link can be used independent of the URL base path (this is helpful for instance in development mode or when cloning the wiki to other hosts).
  • It allows the link to work regardless of the language selected by the user. (You can test this feature by changing the language of this page and then clicking on the link, it should take you to this same page while preserving the selected language.)