diff --git a/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs
index e354127429..1010d07dbd 100644
--- a/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs
+++ b/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs
@@ -35,8 +35,8 @@ namespace Umbraco.Tests.Routing
Assert.IsTrue(result);
Assert.IsNotNull(docRequest.PublishedContent);
- Assert.IsNotNull(docRequest.Template);
- Assert.AreEqual("blah".ToUpperInvariant(), docRequest.Template.ToUpperInvariant());
+ Assert.IsNotNull(docRequest.TemplateAlias);
+ Assert.AreEqual("blah".ToUpperInvariant(), docRequest.TemplateAlias.ToUpperInvariant());
}
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
index 3f870431a3..3f3e368cbe 100644
--- a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
+++ b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
@@ -274,7 +274,7 @@ namespace Umbraco.Web.Mvc
//the template Alias should always be already saved with a safe name.
//if there are hyphens in the name and there is a hijacked route, then the Action will need to be attributed
// with the action name attribute.
- var templateName = global::umbraco.cms.helpers.Casing.SafeAlias(publishedContentRequest.Template.Split('.')[0]);
+ var templateName = global::umbraco.cms.helpers.Casing.SafeAlias(publishedContentRequest.TemplateAlias.Split('.')[0]);
def.ActionName = templateName;
}
diff --git a/src/Umbraco.Web/Routing/PublishedContentRequest.cs b/src/Umbraco.Web/Routing/PublishedContentRequest.cs
index 9ac671af7a..5cd573907f 100644
--- a/src/Umbraco.Web/Routing/PublishedContentRequest.cs
+++ b/src/Umbraco.Web/Routing/PublishedContentRequest.cs
@@ -181,9 +181,9 @@ namespace Umbraco.Web.Routing
}
///
- /// Gets the template to use to display the requested content.
+ /// Gets the alias of the template to use to display the requested content.
///
- public string Template
+ public string TemplateAlias
{
get
{
@@ -194,14 +194,14 @@ namespace Umbraco.Web.Routing
///
/// Tries to set the template to use to display the requested content.
///
- /// The name of the template.
- /// A value indicating whether a valid template with the specified name was found.
- /// Setting the template resets RenderingEngine to Unknown.
- public bool TrySetTemplate(string name)
+ /// The alias of the template.
+ /// A value indicating whether a valid template with the specified alias was found.
+ /// Setting the template refreshes RenderingEngine.
+ public bool TrySetTemplate(string alias)
{
this.RenderingEngine = Core.RenderingEngine.Unknown; // reset
- if (string.IsNullOrWhiteSpace(name))
+ if (string.IsNullOrWhiteSpace(alias))
{
this.TemplateModel = null;
return true;
@@ -209,9 +209,9 @@ namespace Umbraco.Web.Routing
else
{
// NOTE - can we stil get it with whitespaces in it due to old legacy bugs?
- name = name.Replace(" ", "");
+ alias = alias.Replace(" ", "");
- var model = ApplicationContext.Current.Services.FileService.GetTemplate(name);
+ var model = ApplicationContext.Current.Services.FileService.GetTemplate(alias);
if (model == null)
{
this.TemplateModel = null;