November Happy Hour will be moved to Thursday December 5th.

Use simple address as outgoing URL when available

Fixed in

EPiServer.CMS.Core 12.6.0

(Or a related package)

Created

Feb 16, 2022

Updated

May 24, 2022

Area

CMS Core

State

Closed, Acceptance tests pass


Description

You can use simple addresses as outgoing URLs (when simple URLs are available).  The following example shows how to set PreferredUrlFormat to Simple or Hierarchical (default) in startup.cs (or in appsettings.json).

public void ConfigureServices(IServiceCollection services)
{
    // omitted for brevity

    services.Configure<RoutingOptions>(o => o.PreferredUrlFormat = PreferredUrlFormat.Simple);
}