mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
#19141: Fixing default session state for custom routes
Work Item: 19141 --HG-- branch : 1.x
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Orchard.Mvc.Routes {
|
||||
|
||||
yield return new RouteDescriptor {
|
||||
Priority = -10,
|
||||
SessionState = defaultSessionState == SessionStateBehavior.Default ? SessionStateBehavior.Disabled : defaultSessionState, // sessions are disabled by default on front-end
|
||||
SessionState = defaultSessionState,
|
||||
Route = new Route(
|
||||
displayPath + "/{controller}/{action}/{id}",
|
||||
new RouteValueDictionary {
|
||||
|
||||
Reference in New Issue
Block a user