Merge pull request #2148 from LennardF1989/U4-10345

Added possibilty to ignore collisions from an IContentFinder (U4-10345)
This commit is contained in:
Sebastiaan Janssen
2018-07-16 13:38:23 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -635,6 +635,9 @@ namespace Umbraco.Web.Routing
set { _headers = value; }
}
/// <summary>
/// Gets of sets a value indicating whether the Umbraco Backoffice should ignore a collision for this request.
/// </summary>
public bool IgnorePublishedContentCollisions { get; set; }
}
}

View File

@@ -78,7 +78,7 @@ namespace Umbraco.Web.Routing
{
urls.Add(ui.Text("content", "routeError", "(error)", umbracoContext.Security.CurrentUser));
}
else if (pcr.PublishedContent.Id != content.Id)
else if (pcr.IgnorePublishedContentCollisions == false && pcr.PublishedContent.Id != content.Id)
{
var o = pcr.PublishedContent;
string s;