Merge pull request #9849 from kjac/netcore/bug/preview
Preview does display draft versions
This commit is contained in:
@@ -44,9 +44,6 @@ namespace Umbraco.Extensions
|
||||
|
||||
public static IApplicationBuilder UseUmbracoPreview(this IApplicationBuilder app)
|
||||
{
|
||||
// TODO: I'm unsure this middleware will execute before the endpoint, we'll have to see
|
||||
app.UseMiddleware<PreviewAuthenticationMiddleware>();
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
PreviewRoutes previewRoutes = app.ApplicationServices.GetRequiredService<PreviewRoutes>();
|
||||
|
||||
Reference in New Issue
Block a user