Fixes issue https://github.com/umbraco/Umbraco-CMS/issues/8816 on alpha001 regarding incorrect mapping of id param

This commit is contained in:
Elitsa Marinovska
2020-09-08 13:12:36 +02:00
parent 13ad1e0a88
commit 0f7ad6b00c

View File

@@ -64,7 +64,7 @@ namespace Umbraco.Web.Trees
/// <param name="id"></param>
/// <param name="queryStrings"></param>
/// <returns></returns>
public ActionResult<TreeNode> GetTreeNode(string id, [ModelBinder(typeof(HttpQueryStringModelBinder))]FormCollection queryStrings)
public ActionResult<TreeNode> GetTreeNode([FromRoute] string id, [ModelBinder(typeof(HttpQueryStringModelBinder))]FormCollection queryStrings)
{
int asInt;
Guid asGuid = Guid.Empty;