I am having the following problem. I setup MVC SiteMap but there is a node which I need to save (preserve) the parameter. Technically the problem explained:
I have route: Agent/Checklists/Templates, from there I am opening specific template, Agent/Checklists/EditTemplate/1 (where 1 is the id) Then from there I am opening new page which is Agent/Processes/Add
In the last page I have the breadcrumb: Templates > Edit Template > Add Process
And now I want when I click on Edit Template to get me redirected to Agent/Checklists/EditTemplate/1
I tried putting SiteMapPreserveRouteData decorator on the Action but it says it is obsolete.
Here is my Mvc.sitemap
<mvcSiteMapNode title="Templates" controller="Checklists" action="Templates" area ="Agent">
<mvcSiteMapNode title="Edit Template" controller="Checklists" action="EditTemplate" area="Agent" preservedRouteParameters="id">
<mvcSiteMapNode title="Add Process" controller="Processes" action="Add" area="Agent" preservedRouteParameters="id, id" />
<mvcSiteMapNode title="Process Configuration" controller="Processes" action="Edit" area="Agent" preservedRouteParameters="token" />
</mvcSiteMapNode>
</mvcSiteMapNode>
Thanks