MvcSiteMapProvider v4 upgrade from v3.
I have a route like
routes.MapRoute(
"SEPageNoAction",
"{controller}/{name}/{id}",
new { controller = "Home", action = "Index", name = UrlParameter.Optional, id = UrlParameter.Optional }, // Parameter defaults
new { name = @"\D+", id = @"\d+" } // Types
);
I'm building nodes in code with DynamicNode
I'm not setting Action, or rather, sets Action=null
I'll then add "Name" & "Id" as RouteValues.
When I run I'll get:
The node with key 'KEY' and title 'TITLE' has both an empty 'action' and empty 'url', which is not allowed
This worked in v3.
What changed?