We have copied certain content items from one site and ‘pasted as link’ to another site that uses a different global template. We then created a new navtree and propogated navons throughout the new site, followed by assigning landing pages to each new navon etc.
This works fine until we publish the new version of the site. When we check the logs everything is publishing to the correct directory but the managed navigation is breaking by inserting /unknownpath/index.html for every link. Has anyone experienced something similar?
This can be caused by when you have slot relationships which contain the Site ID and Folder ID properties.
When you add an item to a slot, what relationship properties get added to the relationship depends on the Display Format used for the search. If the display format contains the folder id and site id, they will be attached to relationship.
When assembling slots, relationships which have a site ids in them become “cross site” links: they link to the content on the other site.
When you cloned the content items, you copied these relationships with the wrong site ids in them.
The only way to fix this from the front end is to remove the relationship and re-add it. You can of course, change the relationship properties tables in the backend, but this requires great skill and care.