Fixing Core.Contents' create and remove route value metadata

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-22 22:38:08 -08:00
parent a70c5ad4ea
commit 15310bca8b

View File

@@ -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}
};