mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +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 {
|
yield return new RouteDescriptor {
|
||||||
Priority = -10,
|
Priority = -10,
|
||||||
SessionState = defaultSessionState == SessionStateBehavior.Default ? SessionStateBehavior.Disabled : defaultSessionState, // sessions are disabled by default on front-end
|
SessionState = defaultSessionState,
|
||||||
Route = new Route(
|
Route = new Route(
|
||||||
displayPath + "/{controller}/{action}/{id}",
|
displayPath + "/{controller}/{action}/{id}",
|
||||||
new RouteValueDictionary {
|
new RouteValueDictionary {
|
||||||
|
|||||||
Reference in New Issue
Block a user