I have a link "Ticket/Index" with different parameters. I created a menu with this link and its parameters using routing. The menu is shown correctly but the breadcrumbs don't show them!
Mvc.sitemap:
<mvcSiteMapNode id="Admin" title="Admin Menu" clickable="false" imageUrl="fa fa-th" >
<mvcSiteMapNode title="Users" controller="User" action="Index" />
<mvcSiteMapNode title="Projetcs" controller="Project" action="Index" />
<mvcSiteMapNode title="Admin Tickets" controller="Admin" action="Index" /> ===> Ticket/index?role=0
</mvcSiteMapNode>
<mvcSiteMapNode id="Supporter" title="Support Menu" clickable="false" imageUrl="fa fa-th" >
<mvcSiteMapNode title="New Tickets" controller="Support" action="ListWaiting" /> ===> Ticket/Index?role=3&mode=receive&status=0
<mvcSiteMapNode title="Add New Ticket" controller="Ticket" action="Insert"/>
</mvcSiteMapNode>
RouteConfig.cs :
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "AdminTicketIndex",
url: "Admin/Index",
defaults: new { controller = "Ticket", action = "Index", role = 0 });
routes.MapRoute(
name: "SupportTicketIndex",
url: "Support/ListWaiting",
defaults: new { controller = "Ticket", action = "Index", role = 3, mode = "receive", status = 0 });
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional });
}