Fixing tests, created constants

This commit is contained in:
Shannon
2021-02-05 13:14:24 +11:00
parent eed8e4dca8
commit b883ebfd7d
13 changed files with 87 additions and 86 deletions

View File

@@ -18,6 +18,7 @@ using Umbraco.Web.Common.ModelBinders;
using Umbraco.Web.Models.Trees;
using Umbraco.Web.Services;
using Umbraco.Web.Trees;
using static Umbraco.Core.Constants.Web.Routing;
namespace Umbraco.Web.BackOffice.Trees
{
@@ -302,8 +303,8 @@ namespace Umbraco.Web.BackOffice.Trees
// create proxy route data specifying the action & controller to execute
var routeData = new RouteData(new RouteValueDictionary()
{
["action"] = action,
["controller"] = controllerName
[ActionToken] = action,
[ControllerToken] = controllerName
});
if (!(querystring is null))
{