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:
<a href="/da/ledige-boliger/">Testar</a>
And when it doesn't work it gives me a link to "edit mode":
<a href="/EPiServer/Cms/Content...">Testar</a>
We have a display template that looks like this,
<ul>
@foreach (LinkItem linkItem in Model)
{
<li>@Html.PageLink(linkItem)</li>
}
</ul>
Anyone knows why this happends and how to prevent it?
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,
Anyone knows why this happends and how to prevent it?