Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Mapping CMS content in router breaks StaticFileMiddleware's ability to provide embedded files.

Found in

EPiServer.CMS.UI 12.0.3

Fixed in

EPiServer.CMS.UI 12.2.0

(Or a related package)

Created

Oct 21, 2021

Updated

Jan 13, 2023

Area

CMS Core

State

Closed, Fixed and tested


Description

Mapping CMS content in router broke StaticFileMiddleware's ability to provide embedded files. When you registered the routing for content, it overwrote the file providers within the StaticFileOptions instance, without regarding that the change affected the StaticFileMiddleware.