Try our conversational search powered by Generative AI!

URLs based on the owning content for files in contentassets folder

Fixed in

EPiServer.CMS.Core 12.6.0

(Or a related package)

Created

Feb 16, 2022

Updated

May 23, 2022

Area

CMS Core

State

Closed, Acceptance tests pass


Description

You can have friendly media URLs (like https://www.something.se/en/research/research-support/contentassets/some-document.pdf) that are based on the content owner by entering the following configuration code:

public void ConfigureServices(IServiceCollection services)
{
services.Configure<RoutingOptions>(o =>
{
	o.ContentAssetsBasePath = ContentAssetsBasePath.ContentOwner;
});
}