-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Template view not found. #15141
Conversation
src/OrchardCore.Modules/OrchardCore.Templates/Controllers/TemplateController.cs
Outdated
Show resolved
Hide resolved
Please change your PR review status to changes requested here @MikeAlhayek. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last change and I'll merge it.
@@ -115,7 +115,8 @@ public async Task<IActionResult> Index(ContentOptions options, PagerParameters p | |||
new SelectListItem(S["Delete"], nameof(ContentsBulkAction.Remove)), | |||
]; | |||
|
|||
return View(model); | |||
// Both the Templates and Admin Templates use the same view (Index.cshtml) but with a different route. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the comment to use this instead?
// Both the 'Template' and 'Admin' actions render the 'Index' template.
// To ensure we render the same view, we explicitly specify the name of the view that should be rendered.
Fixes: #15140