Skip to content

Commit

Permalink
Fixes #214, Area in top node influences child nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Aug 28, 2013
1 parent 96da81a commit 3e8dee6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ protected virtual ISiteMapNode GetSiteMapNodeFromXmlElement(ISiteMap siteMap, XE
// Inherit area and controller from parent
if (parentNode != null)
{
if (string.IsNullOrEmpty(area))
if (string.IsNullOrEmpty(area) && !siteMapNode.RouteValues.ContainsKey("area"))
{
siteMapNode.Area = parentNode.Area;
}
if (string.IsNullOrEmpty(controller))
if (string.IsNullOrEmpty(controller) && !siteMapNode.RouteValues.ContainsKey("controller"))
{
siteMapNode.Controller = parentNode.Controller;
}
Expand Down

0 comments on commit 3e8dee6

Please sign in to comment.