How do prevent MvcSiteMap nodes from preserving Url parameters?

Sep 13, 2011 at 2:17 PM

My current problem is related to using id's off the controller action to show a specific record.


/Staff/Index -> (Mvc SiteMap node) Shows a list of people in the system

/Staff/Index/100 -> Shows details on person with id = 100

When I navigate to the 2nd link and the page refreshes, the link in the menu goes to /Staff/Index/100. This means every time I navigate to the menu link, it will always bring up this record.

I want the Mvc SiteMap node to link to the page that was specified in my sitemap file.  Sitemap file is like so:

  <mvcSiteMapNode title="Admin" url="#admin" roles="Admin" >
      <mvcSiteMapNode title="Staff" controller="Staff" action="Index" roles="Admin" />