#19141: Fixing default session state for custom routes

Work Item: 19141

--HG--
branch : 1.x
This commit is contained in:
Piotr Szmyd
2012-10-15 11:29:24 -07:00
parent a1910c7521
commit b87f70f20f

View File

@@ -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 {