From 15310bca8ba1889a0d5ba9e8ef94626e4100a110 Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Mon, 22 Nov 2010 22:38:08 -0800 Subject: [PATCH] Fixing Core.Contents' create and remove route value metadata --HG-- branch : dev --- src/Orchard.Web/Core/Contents/Handlers/ContentsHandler.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Orchard.Web/Core/Contents/Handlers/ContentsHandler.cs b/src/Orchard.Web/Core/Contents/Handlers/ContentsHandler.cs index 09adc6dd6..d6d056ba8 100644 --- a/src/Orchard.Web/Core/Contents/Handlers/ContentsHandler.cs +++ b/src/Orchard.Web/Core/Contents/Handlers/ContentsHandler.cs @@ -7,8 +7,9 @@ namespace Orchard.Core.Contents.Handlers { if (context.Metadata.CreateRouteValues == null) { context.Metadata.CreateRouteValues = new RouteValueDictionary { {"Area", "Contents"}, - {"Controller", "Item"}, - {"Action", "Create"} + {"Controller", "Admin"}, + {"Action", "Create"}, + {"Id", context.ContentItem.ContentType} }; } if (context.Metadata.EditorRouteValues == null) { @@ -30,7 +31,7 @@ namespace Orchard.Core.Contents.Handlers { if (context.Metadata.RemoveRouteValues == null) { context.Metadata.RemoveRouteValues = new RouteValueDictionary { {"Area", "Contents"}, - {"Controller", "Item"}, + {"Controller", "Admin"}, {"Action", "Remove"}, {"Id", context.ContentItem.Id} };