Merge pull request #9849 from kjac/netcore/bug/preview

Preview does display draft versions
This commit is contained in:
Bjarke Berg
2021-03-11 08:41:21 +01:00
committed by GitHub
5 changed files with 36 additions and 22 deletions

View File

@@ -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>();