Replace surface with area name if surface controller has one

This commit is contained in:
Mole
2021-06-30 14:36:08 +02:00
parent 73f8ed7e12
commit 0835423e68
3 changed files with 56 additions and 3 deletions

View File

@@ -65,11 +65,10 @@ namespace Umbraco.Cms.Web.Website.Routing
// exclude front-end api controllers
PluginControllerMetadata meta = PluginController.GetMetadata(controller);
endpoints.MapUmbracoRoute(
endpoints.MapUmbracoSurfaceRoute(
meta.ControllerType,
_umbracoPathSegment,
meta.AreaName,
"Surface");
meta.AreaName);
}
}