volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

MenuItem Attribute with MVC

I'm trying to set up a global navigation using the MenuSection and MenuItem attributes using the MVC method (following the instructions from Dung Le's post). The MenuSection and MenuItems show up show just fine, but when I click on a MenuItem, it takes me to a page that says "Incorrect Link".

I have set up an MVC project for the navigtaion module alongside a Public Templates project (sample code from my Controller is below).

What else am I missing? I'm guessing that I need to register my route somewhere. Thanks in advance!

 

[MenuSection("/admin/manager/", Text = "Manager")]
    public class ManagerController : Controller
    {
        [MenuItem("/admin/manager/index/", Text = "Dashboard", Url="~/admin/manager/index/")]
        public ActionResult Index()
        {
            return View();
        }
    }

 

#41553
Jul 13, 2010 5:21
error 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.