Skip to content

Commit

Permalink
Allow dashboards to also be the "last accessed item" (#12689)
Browse files Browse the repository at this point in the history
* Allow dashboards to also be the "last accessed item"

* Use tripple =
  • Loading branch information
mattbrailsford authored and Zeegaan committed Jul 20, 2022
1 parent 2d217d5 commit 08a7a26
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -130,12 +130,12 @@ angular.module('umbraco.services')
getLastAccessedItemForSection: function (sectionAlias) {
for (var i = 0, len = nArray.length; i < len; i++) {
var item = nArray[i];
if (item.link.indexOf(sectionAlias + "/") === 0) {
if (item.link === sectionAlias || item.link.indexOf(sectionAlias + "/") === 0) {
return item;
}
}

return null;
}
};
});
});

0 comments on commit 08a7a26

Please sign in to comment.