Class Constants.Web
Defines the identifiers for Umbraco system nodes.
Inheritance
object
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public static class Constants.Web
Fields
View SourceAcceptPreviewCookieName
Client-side cookie that determines whether the user has accepted to be in Preview Mode when visiting the website.
Declaration
public const string AcceptPreviewCookieName = "UMB-WEBSITE-PREVIEW-ACCEPT"
Field Value
| Type | Description |
|---|---|
| string |
BackofficeSignalRHub
The SignalR hub path for backoffice real-time communication.
Declaration
public const string BackofficeSignalRHub = "/backofficeHub"
Field Value
| Type | Description |
|---|---|
| string |
CacheBusterToken
The token used to replace the cache buster hash in web assets.
Declaration
public const string CacheBusterToken = "%CACHE_BUSTER%"
Field Value
| Type | Description |
|---|---|
| string |
CsrfValidationCookieName
The cookie name that is used to store the validation value
Declaration
public const string CsrfValidationCookieName = "UMB-XSRF-V"
Field Value
| Type | Description |
|---|---|
| string |
InstallerCookieName
The installer cookie name (obsolete).
Declaration
[Obsolete("InstallerCookieName is no longer used. Scheduled for removal in Umbraco 19.")]
public const string InstallerCookieName = "umb_installId"
Field Value
| Type | Description |
|---|---|
| string |
ManagementApiPath
The "base" path to the Management API
Declaration
public const string ManagementApiPath = "/management/api/"
Field Value
| Type | Description |
|---|---|
| string |
NoContentRouteName
The route name of the page shown when Umbraco has no published content.
Declaration
public const string NoContentRouteName = "umbraco-no-content"
Field Value
| Type | Description |
|---|---|
| string |
PreviewCookieName
The preview cookie name
Declaration
public const string PreviewCookieName = "UMB_PREVIEW"
Field Value
| Type | Description |
|---|---|
| string |
ServerEventSignalRHub
The SignalR hub path for server-sent events.
Declaration
public const string ServerEventSignalRHub = "/serverEventHub"
Field Value
| Type | Description |
|---|---|
| string |
TwoFactorRememberBrowserCookie
The default authentication type used for remembering that 2FA is not needed on next login
Declaration
public const string TwoFactorRememberBrowserCookie = "TwoFactorRememberBrowser"
Field Value
| Type | Description |
|---|---|
| string |