From fa053426c377cf7cbe5c1ff2e9cdf1b46c67478d Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 2 Apr 2015 17:16:56 +0200 Subject: [PATCH] Don't disableFindContentByIdPath when in preview mode --- src/Umbraco.Web/Routing/ContentFinderByIdPath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/ContentFinderByIdPath.cs b/src/Umbraco.Web/Routing/ContentFinderByIdPath.cs index 90da48039c..88f4388fa3 100644 --- a/src/Umbraco.Web/Routing/ContentFinderByIdPath.cs +++ b/src/Umbraco.Web/Routing/ContentFinderByIdPath.cs @@ -21,7 +21,7 @@ namespace Umbraco.Web.Routing /// A value indicating whether an Umbraco document was found and assigned. public bool TryFindContent(PublishedContentRequest docRequest) { - if (UmbracoConfig.For.UmbracoSettings().WebRouting.DisableFindContentByIdPath) + if (UmbracoContext.Current.InPreviewMode == false && UmbracoConfig.For.UmbracoSettings().WebRouting.DisableFindContentByIdPath) return false; IPublishedContent node = null;