Is the model auto-generated or did you create them manually? What type is Link, Glass.Mapper.Sc.Fields.Link
? If so you need @socialLink.Url.Url
, you want the Url property from the Link field called Url.
@foreach (var socialLink in Model.SocialFolder.Socials)
{
<a href="@socialLink.Url.Url" class="connect @socialLink.Class">@socialLink.Description</a>
}
I would be very tempted to rename Class
and Url
properties to something else, possibly CssClass
and SocialMediaUrl
or something so as not to cause confusion.