AI OnAI Off
While at it, you might want to check out how UrlResolver.GetUrl() works for multiple sites when on one site but trying to get link url to a page on another site in a specific language...seem to recall that this isn't working correctly :)
The link item collection was used on multisite site to setup in the footer all start pages in different languages.
Eg:
1) In Admin->Config->Manage websites->CurrentSite (http://test.company.com) were set up Hosts:
test.company.pl with pl culture
test.company.sv with sv culture
test.company.no with no culture.
2) The StartPage has a property LinkItemCollection Sites.
3) In edit mode the content editor tries to setup footer links on the sv site to test.company.pl & test.company.no in LinkItemCollection Sites:
3.1.) "Create a new link"
3.2.) In "Edit Link" fills in the "Link name/text" as test.company.pl, checks "External link" and sets http://test.company.pl.
3.3.) Clicks ok. (http://gyazo.com/d9ffa22a81dd33af3de4f15b2348bf6d).
3.4.) Opens the same link in LinkItemCollection and finds that the link to http://test.company.pl was change to page reference to the Start Page (http://gyazo.com/f8478b4a1fd4435f608f1f3c3b774398).
3.5.) Publishes the page.
3.6.) Checks the links in footer and finds that they reference not to the test.company.pl & test.company.no but to the test.company.sv both.
How to set up in link in LinkItemCollection to the start page with different language on the multisite instance?
The EpiServer CMS 7.6.5 is used.