Inconsistent context in case of displaying a referenced node

  Written by The Jahia Team
   Estimated reading time:
7.1.2.0

The main issue is that the context of the referenced node is the context of the node where it was created.
The issue has been reproduced as below:

  1. Creation of a site B with the sample-bootstrap-templates template.
  2. Creation of a menu after creating 3 pages: Site B page 1, Site B page 2, Site B page 3
  3. Upload a new logo for the site B
  4. Création of a News (News entry) in the central column of the Home page.
  5. Creation of a site A with the sample-bootstrap-templates template.
  6. Creation of a menu after creating 2 pages: Site A page 1, Site A page 2.
  7. In the central column of the Home page.
    • Right-click and selection of the menu "Show in Repository Explorer"
    • Right-click on the "news" content in the site B and copy it.
    • Select Home > pagecontent in the site A,
    • Right click on pagecontent and select "Paste reference"
  8. Access to the site A in preview mode:
    => The content of the news of the site B is well referenced BUT the content of this news is displayed in the context of the site B: The logo and the menu of the site B is displayed
  9. Publication of the two sites.
  10. Access to the site A in live mode:

The content of the news of the site B is well referenced BUT the content of this news is partially displayed in the context of the site B: The logo is the logo of the site A BUT the menu of the site B is displayed

Cause

Site A and site B have the same server names.

Solution

This feature only works if you use server names in the URLs. Site A and site B must have different server names, and the sites must be accessed with these server names (http://sitea and http://siteb )