From f586883da1bf1fee4d632107fffca7c8a77a6a9f Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Tue, 12 May 2020 19:58:51 +0200 Subject: [PATCH] AB6455 Fix issue with ITempDataDictionary --- src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs b/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs index 5019dbd7c2..c6f0a95206 100644 --- a/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs +++ b/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs @@ -122,7 +122,8 @@ namespace Umbraco.Web.Website.ActionResults // http://issues.umbraco.org/issue/U4-1339 var targetController = controller; - var tempData = context.HttpContext.RequestServices.GetRequiredService(); + var tempDataDictionaryFactory = context.HttpContext.RequestServices.GetRequiredService(); + var tempData = tempDataDictionaryFactory.GetTempData(context.HttpContext); targetController.TempData = tempData; targetController.TempData.Save();