diff --git a/src/Umbraco.Web/Mvc/AreaRegistrationExtensions.cs b/src/Umbraco.Web/Mvc/AreaRegistrationExtensions.cs index b67d73880e..2df33c17f2 100644 --- a/src/Umbraco.Web/Mvc/AreaRegistrationExtensions.cs +++ b/src/Umbraco.Web/Mvc/AreaRegistrationExtensions.cs @@ -83,7 +83,7 @@ namespace Umbraco.Web.Mvc controllerPluginRoute.DataTokens = new RouteValueDictionary(); } //look in this namespace to create the controller - controllerPluginRoute.DataTokens.Add("Namespaces", controllerType.Namespace); + controllerPluginRoute.DataTokens.Add("Namespaces", new[] {controllerType.Namespace}); } //constraints: only match controllers ending with 'controllerSuffixName' and only match this controller's ID for this route diff --git a/src/Umbraco.Web/WebBootManager.cs b/src/Umbraco.Web/WebBootManager.cs index 0e571b4455..c682f466b8 100644 --- a/src/Umbraco.Web/WebBootManager.cs +++ b/src/Umbraco.Web/WebBootManager.cs @@ -209,7 +209,7 @@ namespace Umbraco.Web { route.DataTokens = new RouteValueDictionary(); } - route.DataTokens.Add("Namespaces", meta.ControllerNamespace); //look in this namespace to create the controller + route.DataTokens.Add("Namespaces", new[] {meta.ControllerNamespace}); //look in this namespace to create the controller route.DataTokens.Add("umbraco", "api"); //ensure the umbraco token is set }