Cross-site links are rendered with an incorrect root path


Description

In a multisite solution, a cross-site link might get rendered in the context of a wrong site and contain the item's path, for example:

www.site1.com/sitecore/content/Site2/Home/Item1

The correct variant is:

www.site2.com/Item1

Solution

To resolve the issue, consider one of the following options: