Skip to content

Commit

Permalink
Admin Template view not found. (OrchardCMS#15141)
Browse files Browse the repository at this point in the history
  • Loading branch information
microposmp authored and urbanit committed Mar 18, 2024
1 parent d8b2256 commit 4806fe1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public async Task<IActionResult> Index(ContentOptions options, PagerParameters p
new SelectListItem(S["Delete"], nameof(ContentsBulkAction.Remove)),
];

return View(model);
// The 'Admin' action redirect the user to the 'Index' action.
// To ensure we render the same 'Index' view in both cases, we have to explicitly specify the name of the view that should be rendered.
return View(nameof(Index), model);
}

[HttpPost, ActionName(nameof(Index))]
Expand Down

0 comments on commit 4806fe1

Please sign in to comment.