2020-12-06 10:46:04 +01:00
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
|
|
|
|
using Umbraco.Core.Models.PublishedContent;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
2020-08-20 22:18:50 +01:00
|
|
|
namespace Umbraco.Core.Configuration.Models
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Typed configuration options for web routing settings.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public class WebRoutingSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether IIS custom errors should be skipped.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool TrySkipIisCustomErrors { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether an internal redirect should preserve the template.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool InternalRedirectPreservesTemplate { get; set; } = false;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether the use of alternative templates are disabled.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool DisableAlternativeTemplates { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether the use of alternative templates should be validated.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool ValidateAlternativeTemplates { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether find content ID by path is disabled.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool DisableFindContentByIdPath { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value indicating whether redirect URL tracking is disabled.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public bool DisableRedirectUrlTracking { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value for the URL provider mode (<see cref="UrlMode"/>).
|
|
|
|
|
/// </summary>
|
2020-09-21 21:20:46 +02:00
|
|
|
public UrlMode UrlProviderMode { get; set; } = UrlMode.Auto;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value for the Umbraco application URL.
|
|
|
|
|
/// </summary>
|
2020-08-20 08:24:23 +01:00
|
|
|
public string UmbracoApplicationUrl { get; set; }
|
2020-03-16 14:02:08 +01:00
|
|
|
}
|
|
|
|
|
}
|