Class RoutingOptions
Contains settings for content routing
Inheritance
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[Options(ConfigurationSection = "Cms")]
public class RoutingOptions : Object
  Constructors
RoutingOptions()
Declaration
public RoutingOptions()
  Properties
IsUrlCacheEnabled
Specifies if generated content urls should be cached
Declaration
public bool IsUrlCacheEnabled { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
ShortcutRedirection
Specifes how pages with a shortcut should be handled when routed to
Declaration
public HttpRedirect ShortcutRedirection { get; set; }
  Property Value
| Type | Description | 
|---|---|
| HttpRedirect | 
Remarks
Default is that page is permanent redirected to the content it is a shortcut for
StrictLanguageRouting
Defines if strict language determination should be used during routing.
Declaration
public bool StrictLanguageRouting { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
Defalt value is true
UrlCacheExpirationTime
Gets the content url cache expiration time .
Declaration
public TimeSpan UrlCacheExpirationTime { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.TimeSpan | 
UsePrimaryHostForOutgoingUrls
Specifies that the HostDefinitionType that is Primary should be used when generating outgoing url.
Declaration
public bool UsePrimaryHostForOutgoingUrls { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Remarks
This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
UseTrailingSlash
Gets or sets a value indicating whether a trailing slash should be added for urls to content.
Declaration
public bool UseTrailingSlash { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Remarks
Default value is true.
Methods
ConfigureForExternalTemplates()
Obsolete! Configures routing to support that templates are deployed in a separate application
Declaration
public void ConfigureForExternalTemplates()