Hi. Is it possible to create a content on one site that links directly to a content on a different site? We have Site A running on https://insert-domain.com/pilot/no and Site B running on https://insert-domain.com/pilot/dk, and we would like to create a content on Site A that links to a content on Site B. We’re using vhost-configuration.
We have already set this up, but when clicking on the link on Site A we get 400 Bad Request - URI out of scope.
It works in admin because both site are in the same vhost mapping. But not in portal because then they are in 2 different mappings.
So I can think of 3 solutions (but somebody has maybe found a better solution)
You put these two sites in a same vhost: You could have a mapping “insert-domain.com/pilot” -> “/portal/master”. But it might be problematic if there are some other unrelated sites, so maybe:
Put these two sites under a common parent and have a mapping “insert-domain.com/pilot” -> “/portal/master/parentname”
Or you create the URL yourself. You know what host the link is supposed to point to, and you can retrieve the content path and concatenate both. But then the link in admin would not be the one you want
Essentially the problem here is that XP does not know what vhost a site is using. We are working on a solution for this that will allow XP to create links between two live sites…
The reason this works in content studio is because there everything is running in the same vhost.