Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

LinkItemCollection and Html.PageLink

Vote:
 

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?   

 

#82487
Mar 13, 2014 14:22
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.