turns off the endpoint matching logic - makes it configurable since it shouldn't be needed

This commit is contained in:
Shannon
2021-01-11 16:43:01 +11:00
parent 8f28569444
commit 2044b82bb4
4 changed files with 31 additions and 22 deletions

View File

@@ -10,6 +10,17 @@ namespace Umbraco.Core.Configuration.Models
/// </summary>
public class WebRoutingSettings
{
/// <summary>
/// Gets or sets a value indicating whether to check if any routed endpoints match a front-end request before
/// the Umbraco dynamic router tries to map the request to an Umbraco content item.
/// </summary>
/// <remarks>
/// This should not be necessary if the Umbraco catch-all/dynamic route is registered last like it's supposed to be. In that case
/// ASP.NET Core will automatically handle this in all cases. This is more of a backward compatible option since this is what v7/v8 used
/// to do.
/// </remarks>
public bool TryMatchingEndpointsForAllPages { get; set; } = false;
/// <summary>
/// Gets or sets a value indicating whether IIS custom errors should be skipped.
/// </summary>