I'm having a strange problem with a property of type LinkItemCollection and when I use Html.PageLink in EPiServer 7.1 MVC. Most of the times this works as expected. But all of a sudden (happends a few times a week, it seems very random) we get a link that points to "edit mode". And when it happends it's the same for all visitors (doesn't matter if you're logged in to episerver or not) and in all browsers.When it works it gives me a standard a-href link:
And when it doesn't work it gives me a link to "edit mode":
We have a display template that looks like this,
@foreach (LinkItem linkItem in Model)
Anyone knows why this happends and how to prevent it?