Skip to content

Commit

Permalink
Added ability to set Url from DynamicNode.
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Apr 6, 2013
1 parent 5188036 commit ef5a4fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public class DynamicNode
/// <value>The parent key.</value>
public string ParentKey { get; set; }

/// <summary>
/// Gets or sets the Url (optional).
/// </summary>
/// <value>The area.</value>
public string Url { get; set; }

/// <summary>
/// Gets or sets the area (optional).
/// </summary>
Expand Down Expand Up @@ -145,6 +151,8 @@ public void SafeCopyTo(ISiteMapNode node)
{
if (!string.IsNullOrEmpty(this.Route))
node.Route = this.Route;
if (!string.IsNullOrEmpty(this.Url))
node.Url = this.Url;
if (!string.IsNullOrEmpty(this.Area))
node.Area = this.Area;
if (!string.IsNullOrEmpty(this.Controller))
Expand Down

0 comments on commit ef5a4fd

Please sign in to comment.