diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index bad4aa0c60..e481f134ec 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -244,6 +244,9 @@ + + ASPXCodeBehind + @@ -354,13 +357,6 @@ Code - - default.aspx - ASPXCodeBehind - - - default.aspx - Code @@ -1867,7 +1863,6 @@ - diff --git a/src/Umbraco.Web/UmbracoModule.cs b/src/Umbraco.Web/UmbracoModule.cs index aa0dbd3c1b..f547f5813a 100644 --- a/src/Umbraco.Web/UmbracoModule.cs +++ b/src/Umbraco.Web/UmbracoModule.cs @@ -116,6 +116,15 @@ namespace Umbraco.Web } else { + if (!docreq.HasTemplate) + { + //TODO: If there is no template then we should figure out what to render, in v4 it is just a blank page but some think + // that it should be a 404. IMO I think it should just be a blank page because it is still a content item in the + //umbraco system, perhaps this should be put on the mail list? For now we will just make it a blank page + httpContext.Response.Clear(); + httpContext.Response.End(); + } + //TODO: Detect MVC vs WebForms var isMvc = true;