Allow dashboards to also be the "last accessed item" (#12689)

* Allow dashboards to also be the "last accessed item"

* Use tripple =
This commit is contained in:
Matt Brailsford
2022-07-13 23:08:44 +02:00
committed by Nikolaj Geisle
parent 2d217d505d
commit 08a7a26743

View File

@@ -130,7 +130,7 @@ 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;
}
}
@@ -138,4 +138,4 @@ angular.module('umbraco.services')
return null;
}
};
});
});