maartenba/MvcSiteMapProvider — Issue #4: Duplicate nested entries cause lockup
Author: batkuip
Created: 2011-12-20 23:01:42+00:00
State: open

Having something like this in the site map will lock up the page when you select the top-level Styles. (endless recursion is my bet)

Reason for me doing this is that I have to separate the top-level menu from the sub menu. So I'm rendering with @Html.MvcSiteMap().Menu(1, 1) and @Html.MvcSiteMap().Menu("SubMenuHelperModel", 2, 1)

Problem here is that if I remove the inner "Styles" entry the submenu never displays as it doesn't seem to pickup the child nodes (Model.Nodes.Count is 0). Maybe this is a separate bug.

Note that if I remove action="Index" on the inner "Styles" entry or create a unique Key it does not lockup but the Styles node will be displayed twice in the subnav (pretty sure this is an another bug since i limiting to start node level 2.