From 3e9556fead20d209ec62b717cc0492d0365fb1ff Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 28 Feb 2019 11:01:53 +1000 Subject: [PATCH] Adds TODO note --- src/Umbraco.Web/Routing/PublishedRouter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web/Routing/PublishedRouter.cs b/src/Umbraco.Web/Routing/PublishedRouter.cs index a72ecc06fc..c93b7c06b2 100644 --- a/src/Umbraco.Web/Routing/PublishedRouter.cs +++ b/src/Umbraco.Web/Routing/PublishedRouter.cs @@ -675,6 +675,9 @@ namespace Umbraco.Web.Routing // TODO: When we remove the need for a database for templates, then this id should be irrelevant, // not sure how were going to do this nicely. + // TODO: We need to limit altTemplate to only allow templates that are assigned to the current document type! + // if the template isn't assigned to the document type we should log a warning and return 404 + var templateId = request.PublishedContent.TemplateId; request.TemplateModel = GetTemplateModel(templateId); }