diff --git a/src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs b/src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs index 6b7e7a1..569b3f0 100644 --- a/src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs +++ b/src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs @@ -41,6 +41,10 @@ public IActionResult GetById(string id, string culture = null) public HttpResponseMessage GetById(string id, string culture = null) #endif { + if (culture == "undefined") + { + culture = null; + } var udiList = new List(); #if NETCOREAPP var udi = UdiParser.Parse(id); diff --git a/src/UmbNav.Web/App_Plugins/UmbNav/js/umbnav.controller.js b/src/UmbNav.Web/App_Plugins/UmbNav/js/umbnav.controller.js index 1bec3ef..e4984a3 100644 --- a/src/UmbNav.Web/App_Plugins/UmbNav/js/umbnav.controller.js +++ b/src/UmbNav.Web/App_Plugins/UmbNav/js/umbnav.controller.js @@ -85,11 +85,11 @@ function getItemEntities(items) { _.each(items, function (item) { - item.description = item.url; if (item.udi) { umbnavResource.getById(item.udi, $routeParams.cculture ? $routeParams.cculture : $routeParams.mculture) .then(function (response) { angular.extend(item, response.data); + item.description = item.url; } );