Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all articles
Browse latest Browse all 9642

CMS 12 migration - breaking change with RouteCollection.MapAssetRoutes

$
0
0

Hello,

In v11, we had a custom route for our assets in our Global.asax. We are trying to find an equivalence in v12.

This was our original code:

routes.MapAssetRoutes(
    name: "PublishingImages",
    url: "/{node}/{partial}/{action}",
defaults: new { action = "index" },
staticSegmentPlaceHolder: EPiServer.Web.Routing.RouteCollectionExtensions.MediaStaticSegmentPlaceHolder,
globalReplacement: "publishingimages",
siteReplacement: EPiServer.Web.Routing.RouteCollectionExtensions.SiteAssetStaticSegment);

Any suggestions?


Viewing all articles
Browse latest Browse all 9642

Trending Articles