From 0726ee1a3950fc3821ee340f0f33a2be1f73b90c Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 8 Oct 2018 10:07:43 +0200 Subject: [PATCH] Get ContentFinderByUrl to work on preview urls --- src/Umbraco.Web/Routing/ContentFinderByUrl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/ContentFinderByUrl.cs b/src/Umbraco.Web/Routing/ContentFinderByUrl.cs index a0dceb23ad..94b2b9dbf2 100644 --- a/src/Umbraco.Web/Routing/ContentFinderByUrl.cs +++ b/src/Umbraco.Web/Routing/ContentFinderByUrl.cs @@ -48,7 +48,7 @@ namespace Umbraco.Web.Routing Logger.Debug("Test route {Route}", route); - var node = docreq.UmbracoContext.ContentCache.GetByRoute(route, culture: docreq.Culture?.Name); + var node = docreq.UmbracoContext.ContentCache.GetByRoute(docreq.UmbracoContext.InPreviewMode, route, culture: docreq.Culture?.Name); if (node != null) { docreq.PublishedContent = node;