Skip to content

Commit

Permalink
Admin Template view not found. (#15141)
Browse files Browse the repository at this point in the history
  • Loading branch information
microposmp authored Jan 21, 2024
1 parent 8d37f96 commit 03491d0
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 03491d0

Please sign in to comment.