Like most websites, I have quite a few HTML-modules in my website in which I link to another page of the site.
My question is, what's the best way to create this link? Regaring for instance the following issues:
- When I copy or export the website to a production server, I don't want all links to be broken. I've experienced this problem when there's a different set-up for the URL.
- I've created a bilangual website, but for now will only display one of the two languages. When I deactivated the second language, all links were broken because the language-tag was no longer in the URL.
- I have HTML-modules that are placed on different pages in my website, on different levels in the menu. So it's not possible to use pure relative links, as they won't work on all pages.
- When I change the name of the page I'm linking to, I'd like the link to "adjust" to the right name. Or is this impossible?
I thought that using the Rich text editor created links that were automatically changed along a change in the URL, but that' seems the case. So I wonder what would be the best way to manage page-links.
My guess is that I must use relative links for all links that are only placed once in the site. For links that are on multiple pages (so that I can't use relative links), best thing to do is work with replace tokens and use [Portal:URL].
Is that right? I'm actually hoping there's a better, consistent way to do this