diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/DashboardWidget.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/DashboardWidget.Edit.cshtml index 9aa87ee5019..1f5b02680e3 100644 --- a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/DashboardWidget.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/DashboardWidget.Edit.cshtml @@ -1,4 +1,5 @@ @{ Model.Metadata.Type = "Content_Edit"; - @await DisplayAsync(Model) + Model.Metadata.Alternates.Clear(); } +@await DisplayAsync(Model) diff --git a/src/OrchardCore.Modules/OrchardCore.Widgets/Views/Widget.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Widgets/Views/Widget.Edit.cshtml index 9aa87ee5019..1f5b02680e3 100644 --- a/src/OrchardCore.Modules/OrchardCore.Widgets/Views/Widget.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Widgets/Views/Widget.Edit.cshtml @@ -1,4 +1,5 @@ @{ Model.Metadata.Type = "Content_Edit"; - @await DisplayAsync(Model) + Model.Metadata.Alternates.Clear(); } +@await DisplayAsync(Model)