Skip to content
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

Merged
merged 4 commits into from
Jan 21, 2024
Merged

Conversation

microposmp
Copy link
Contributor

Fixes: #15140

@Piedone
Copy link
Member

Piedone commented Jan 21, 2024

Please change your PR review status to changes requested here @MikeAlhayek.

Copy link
Member

@MikeAlhayek MikeAlhayek left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@microposmp

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.

@MikeAlhayek MikeAlhayek enabled auto-merge (squash) January 21, 2024 22:59
@MikeAlhayek MikeAlhayek merged commit 03491d0 into OrchardCMS:main Jan 21, 2024
3 checks passed
Skrypt pushed a commit that referenced this pull request Jan 25, 2024
hishamco pushed a commit that referenced this pull request Feb 1, 2024
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When navigating to Admin Templates view is not found
3 participants