getting url of other site in CMS


Hey guys,

i have the following problem:

i have 2 homepage in my CMS, NL and EN

both are setup using different urls  http://nl.local and the other as http://en.local

Now i have a LinkItemCollection property (footerlinks), and for the NL homepage, i add in the property the EN homepage as a link. (chosen from tree).

Now if i iterate thru the items on my NL homepage, i get for the EN page the url http://nl.local/en , but the url should be http://en.local/  

 @if (footerLinks != null && footerLinks.Any())
                        foreach (var link in footerLinks)
                            var url = link.Href;
                            var title = link.Text;
                            var target = link.Target;
  • @Html.ContentLink(link)
  • } }

    How can i get the correct one here?

    Apr 17, 2015 17:03

    Could this have to do with the two languages installed?

    Apr 19, 2015 20:55
    * You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.