From 08a7a26743576ba585380f19bcd202ff4d2301f1 Mon Sep 17 00:00:00 2001 From: Matt Brailsford Date: Wed, 13 Jul 2022 23:08:44 +0200 Subject: [PATCH] Allow dashboards to also be the "last accessed item" (#12689) * Allow dashboards to also be the "last accessed item" * Use tripple = --- .../src/common/services/history.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/history.service.js b/src/Umbraco.Web.UI.Client/src/common/services/history.service.js index 114d002a4d..d94ff52183 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/history.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/history.service.js @@ -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; } }; -}); \ No newline at end of file +});