mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18559: Using only route priority to order routes (including service routes)
Work Item: 18559 --HG-- branch : 1.x
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Orchard.Mvc.Routes {
|
|||||||
public void Publish(IEnumerable<RouteDescriptor> routes) {
|
public void Publish(IEnumerable<RouteDescriptor> routes) {
|
||||||
var routesArray = routes
|
var routesArray = routes
|
||||||
.OrderByDescending(r => r.Priority)
|
.OrderByDescending(r => r.Priority)
|
||||||
.ThenByDescending(r => r.Route is ServiceRoute ? -1 : 1)
|
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
// this is not called often, but is intended to surface problems before
|
// this is not called often, but is intended to surface problems before
|
||||||
|
|||||||
Reference in New Issue
Block a user