Class WebRoutingSettings
Typed configuration options for web routing settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
[UmbracoOptions("Umbraco:CMS:WebRouting")]
public class WebRoutingSettings
Properties
View SourceDisableAlternativeTemplates
Gets or sets a value indicating whether the use of alternative templates are disabled.
Declaration
public bool DisableAlternativeTemplates { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DisableFindContentByIdentifierPath
Gets or sets a value indicating whether the content finder by a path of the content key (ContentFinderByKeyPath) is disabled.
Declaration
public bool DisableFindContentByIdentifierPath { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DisableRedirectUrlTracking
Gets or sets a value indicating whether redirect URL tracking is disabled.
Declaration
public bool DisableRedirectUrlTracking { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
InternalRedirectPreservesTemplate
Gets or sets a value indicating whether an internal redirect should preserve the template.
Declaration
public bool InternalRedirectPreservesTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TryMatchingEndpointsForAllPages
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.
Declaration
public bool TryMatchingEndpointsForAllPages { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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.
TrySkipIisCustomErrors
Gets or sets a value indicating whether IIS custom errors should be skipped.
Declaration
public bool TrySkipIisCustomErrors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
UmbracoApplicationUrl
Gets or sets a value for the Umbraco application URL.
Declaration
public string UmbracoApplicationUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UrlProviderMode
Gets or sets a value for the URL provider mode (UrlMode).
Declaration
public UrlMode UrlProviderMode { get; set; }
Property Value
| Type | Description |
|---|---|
| UrlMode |
UseStrictDomainMatching
Gets or sets a value indicating whether strict domain matching is used when finding content to match the request.
Declaration
public bool UseStrictDomainMatching { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This setting is used within Umbraco's routing process based on content finders, specifically ContentFinderByUrlNew.
If set to the default value of false, requests that don't match a configured domain will be routed to the first root node.
If set to true, requests that don't match a configured domain will not be routed.
ValidateAlternativeTemplates
Gets or sets a value indicating whether the use of alternative templates should be validated.
Declaration
public bool ValidateAlternativeTemplates { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |