Enum UrlProviderMode
Specifies the type of urls that the url provider should produce.
Namespace: Umbraco.Web.Routing
Assembly: umbraco.dll
Syntax
public enum UrlProviderMode
Remarks
The AutoLegacy
option is equivalent to Auto
but it also respects the legacy useDomainPrefixes
setting.
When that setting is true, then all urls are absolute. Otherwise, urls will be relative or absolute, depending on hostnames.
The Relative
option can lead to invalid results when combined with hostnames, but it is the only way to reproduce
the true, pre-4.10, always-relative behavior of Umbraco.
For the time being, the default option is AutoLegacy
although in the future it will be Auto
.
Fields
Name | Description |
---|---|
Absolute | Indicates that the url provider should produce absolute urls exclusively. |
Auto | Indicates that the url provider should determine automatically whether to return relative or absolute urls. |
AutoLegacy | Indicates that the url provider should determine automatically whether to return relative or absolute urls,
and also respect the legacy |
Relative | Indicates that the url provider should produce relative urls exclusively. |