Skip to content

Commit

Permalink
Fixed link description showing as '#'
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSadlerUK committed Jul 13, 2022
1 parent 1854d68 commit 4e3bde7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Udi>();
#if NETCOREAPP
var udi = UdiParser.Parse(id);
Expand Down
2 changes: 1 addition & 1 deletion src/UmbNav.Web/App_Plugins/UmbNav/js/umbnav.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);

Expand Down

0 comments on commit 4e3bde7

Please sign in to comment.