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:
committed by
Nikolaj Geisle
parent
2d217d505d
commit
08a7a26743
@@ -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;
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user