From 4c3d2c10aceda0b3fce9c72f2cb73ced90d65c87 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Mar 2013 17:38:18 -0100 Subject: [PATCH] Web.Routing - clear convoluted .RoutingContext.UmbracoContext.RoutingContext --- src/Umbraco.Web/Routing/ContentFinderByNiceUrl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/ContentFinderByNiceUrl.cs b/src/Umbraco.Web/Routing/ContentFinderByNiceUrl.cs index 67ab79005f..0dbca210e5 100644 --- a/src/Umbraco.Web/Routing/ContentFinderByNiceUrl.cs +++ b/src/Umbraco.Web/Routing/ContentFinderByNiceUrl.cs @@ -58,7 +58,7 @@ namespace Umbraco.Web.Routing // first ask the cache for a node // return '0' if in preview mode var nodeId = !docreq.RoutingContext.UmbracoContext.InPreviewMode - ? docreq.RoutingContext.UmbracoContext.RoutingContext.RoutesCache.GetNodeId(route) + ? docreq.RoutingContext.RoutesCache.GetNodeId(route) : 0; // if a node was found, get it by id and ensure it exists