From f0148ae833029b2fc89875c07c9f0430af3caaf8 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Fri, 31 Aug 2012 07:27:17 +0700 Subject: [PATCH] Added more backwards compatibility to default.aspx --- src/Umbraco.Web/umbraco.presentation/default.aspx.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/default.aspx.cs b/src/Umbraco.Web/umbraco.presentation/default.aspx.cs index 0dd9e7067a..40e69171fd 100644 --- a/src/Umbraco.Web/umbraco.presentation/default.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/default.aspx.cs @@ -61,8 +61,7 @@ namespace umbraco //if we are cancelling then return and don't proceed if (args.Cancel) return; - var templatePath = SystemDirectories.Masterpages + "/" + _docRequest.Template.Alias.Replace(" ", "") + ".master"; // fixme - should be in .Template! - this.MasterPageFile = templatePath; // set the template + this.MasterPageFile = template.GetMasterPageName(_upage.Template); // reset the friendly path so it's used by forms, etc. Context.RewritePath(UmbracoContext.Current.RequestUrl.PathAndQuery);