Don't disableFindContentByIdPath when in preview mode

This commit is contained in:
Sebastiaan Janssen
2015-04-02 17:16:56 +02:00
parent cd26a1ad21
commit fa053426c3

View File

@@ -21,7 +21,7 @@ namespace Umbraco.Web.Routing
/// <returns>A value indicating whether an Umbraco document was found and assigned.</returns>
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;