Added possibilty to ignore collisions from an IContentFinder
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user