diff --git a/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs b/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs index 4437ab0e1d3..32a87ac3857 100644 --- a/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs +++ b/src/Orchard.Web/Core/Contents/Controllers/AdminController.cs @@ -241,6 +241,10 @@ public ActionResult Create(string id, int? containerId) { if (string.IsNullOrEmpty(id)) return CreatableTypeList(containerId); + if (_contentDefinitionManager.GetTypeDefinition(id) == null) { + return RedirectToAction("Create", new { id = "" }); + } + var contentItem = _contentManager.New(id); if (!Services.Authorizer.Authorize(Permissions.EditContent, contentItem, T("Cannot create content")))