From a8ec80430339fbdaf66b632885374af34b87d306 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Fri, 13 Sep 2013 04:58:43 +0700 Subject: [PATCH] Set the implicit resource key to the value of SiteMapCacheKey as described in #228. --- .../MvcSiteMapProvider/Loader/SiteMapCreator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Loader/SiteMapCreator.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Loader/SiteMapCreator.cs index e511ba5e..88cdb01b 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Loader/SiteMapCreator.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Loader/SiteMapCreator.cs @@ -43,6 +43,7 @@ public virtual ISiteMap CreateSiteMap(string siteMapCacheKey) var builderSet = this.GetBuilderSet(siteMapCacheKey); var siteMap = siteMapFactory.Create(builderSet.Builder, builderSet); + siteMap.ResourceKey = siteMapCacheKey; siteMap.BuildSiteMap(); return siteMap;