mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Redirecting to the widget management page with the correct layer context after creating a layer.
work item: 17591 --HG-- branch : 1.x
This commit is contained in:
@@ -237,7 +237,7 @@ namespace Orchard.Widgets.Controllers {
|
||||
}
|
||||
|
||||
Services.Notifier.Information(T("Your {0} has been created.", layerPart.TypeDefinition.DisplayName));
|
||||
return RedirectToAction("Index", "Admin", new { id = layerPart.Id });
|
||||
return RedirectToAction("Index", "Admin", new { layerId = layerPart.Id });
|
||||
} catch (Exception exception) {
|
||||
this.Error(exception, T("Creating layer failed: {0}", exception.Message), Logger, Services.Notifier);
|
||||
return RedirectToAction("Index");
|
||||
|
Reference in New Issue
Block a user