From ef5a4fd2f9a3e54de0873ae6a64562790881a8b8 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sat, 6 Apr 2013 19:15:13 +0700 Subject: [PATCH] Added ability to set Url from DynamicNode. --- src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs index fb348148..1aac72a5 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/DynamicNode.cs @@ -27,6 +27,12 @@ public class DynamicNode /// The parent key. public string ParentKey { get; set; } + /// + /// Gets or sets the Url (optional). + /// + /// The area. + public string Url { get; set; } + /// /// Gets or sets the area (optional). /// @@ -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))