We would like to create content links between sites without the links giving the out of scope-error. XP knows what hostname the different content paths have already from the vhost cfg. Shouldn’t that be possible?
The problem: Technically, you may define multiple vhosts pointing to the same site, so which to choose - also vhost files may be different across different servers in a cluster. Http vs https is also not given (even if stuff is mainly https nowaday).
The good news: We are actually working on a feature we call “baseUrl” as we speak. This let’s you to uniquely set the baseUrl for any given site. This let’s XP confidently create such links, even across content projects. And, you may override the persisted baseUrl value via configuration files. so it works smooth in test environments as well.