|Insofar as is possible, it is STRONGLY advised against using hard-coded hyperlinks in your Actinic pages.
It is preferable to systematically use the navigation behaviors proposed by Actinic when the option is available. The navigation behaviors allow you to avoid numerous problems and guarantee compatibility in relation to the evolution of the Actinic system and of your site.
It is sometimes difficult to anticipate all the hidden problems that might arise when using certain hyperlinks and this is why we don't recommend it.
If you must absolutely use hyperlinks, carefully read the following information.
When you click on a hyperlink in your Internet browser, the browser interprets the link while already knowing where it is located. In other words, if you visit a page whose address is http://www.mydomain.com/Page1.asp and this page contains an HTML link such as:
<A href="Page2.asp">Page 2</A>
Then the browser deduces that the page to be called is "http://www.mydomain.com/Page2.asp" because the main address (domain name) is "http://www.mydomain.com/". The previous hyperlink contains a relative URL address. Within your site, if you want to reference other pages of your own site, you have to use relative addresses like
the one mentioned above.
Let's look at the main reason why using a relative hyperlink is preferable to using an absolute hyperlink. To do this, let's take a case in point:
Your site is not associated to a domain name and its address is still: http://Mysite.oxatis.com
You want to insert a link to another file in a product description.
So, you use the hyperlink wizard which proposes two addresses:
Relative Hyperlink: PBSCCatalog.asp?ItmID=123
Absolute Hyperlink: http://Mysite.oxatis.com/PBSCCatalog.asp?ItmID=123
If you use the second link in this way:
<A href="http://Mysite.oxatis.com/PBSCCatalog.asp?ItmID=123">My other product</A>
Your link will work without any problem.
However, the day that you decide to associate a domain name to your site, you are going to run into problems. Indeed, if your site later becomes mainly accessible through the address http//:www.MySite.com, and a visitor finds themselves viewing your product and clicking on the previously mentioned hyperlink, they will see that they have been sent to another site "http://Mysite.oxatis.com", and this has numerous
First of all, even if it's the "same site" for you, this is not the case for the browser! Indeed, as soon as a site's address changes, the browser considers it to be a different site. This also means different cookies (cookies are established in relation to the address!), which will have a fairly significant impact on browsing, the shopping cart, campaign tracking, etc.
If the visitor to your domain has begun to fill a shopping cart under http//:www.MySite.com, they are going to end up with an empty shopping cart under http://Mysite.oxatis.com!
In conclusion, in the previous example, it would have therefore been preferable to use a relative hyperlink in your product file, such as:
<A href="PBSCCatalog.asp?ItmID=123">My other product</A>
Indeed, if you use this link, you will not run into the same problem if your site changes its name or becomes accessible through a domain name! The browser will systematically use the main address to determine the exact location of the page to display.
| When to use absolute hyperlinks?|
|You should use absolute hyperlinks:
• In the HTML pages that are uploaded to you file gallery, otherwise prefix these hyperlinks by "../../", following this example for the above link:
<A href="../../PBSCCatalog.asp?ItmID=123">My other product</A>
• In links used from locations outside of your site, such as advertising banners, that you have exchanged with other sites.
• In newsletters.
• In the emails that you may send to your customers.
• In any pages that are likely not to be displayed directly INSIDE of your site.
In every instance, if you use hyperlinks coded directly in HTML, it is IMPERATIVE that you test these links in real use situations to verify that the HTML code is valid and that the destination page displays properly.