Create a link to another page

  Written by The Jahia Team
 
Marketers
  url
   Estimated reading time:
7.1.0.1

The customer has created a page "page1", with two links pointing to two other pages. When copying page1 and the two pages under a parent page, the links, in page1, still pointed to the original two pages and not to the copied two pages.

Cause

The links were created an absolute path.

For instance:

  • first page: /cms/{mode}/{lang}/sites/mySite/home/parent1/p2-parent1.html
  • second page: /cms/{mode}/{lang}/sites/mySite/home/parent1/p3-parent1.html

Solution

The solution was to create relative links as below:

  • first page: p2-parent1.html
  • second page: p3-parent1.html