Try our conversational search powered by Generative AI!

Custom Menu Redirect to login page


Hi everyone,

I have created a custom menu in episerver with UrlMenuItem :

return new UrlMenuItem(text, path, url)
      IsAvailable = (request) => PrincipalInfo.HasEditorAccess

When I'm logging with a user with WebEditor right I can see the menu item. But when I click to access this menu, I'm redirected to login form.

But when I'm logging with a user with Administrator right, I don't have this problem and I can access this menu.

Can someone help me to understand, why I can't access to this menu with only editor right ?


May 25, 2016 17:29

Where menu item is pointing? Could it be so - that target page is requiring proper user context and not menu item itself?

May 25, 2016 23:46

Thanks for your answer, but I found the solution. In the controller of this item I had an Authorize attribut that need administrator right.

May 26, 2016 10:06
* 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.