Added possibilty to ignore collisions from an IContentFinder

This commit is contained in:
Lennard Fonteijn
2017-08-23 23:14:49 +02:00
parent a0785f2e0d
commit d980ffe783
2 changed files with 5 additions and 2 deletions

View File

@@ -614,6 +614,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;