diff --git a/frontend/src/component/commandBar/RecentlyVisitedRecorder.tsx b/frontend/src/component/commandBar/RecentlyVisitedRecorder.tsx index 5f6dd1f0e8..ea6e133f98 100644 --- a/frontend/src/component/commandBar/RecentlyVisitedRecorder.tsx +++ b/frontend/src/component/commandBar/RecentlyVisitedRecorder.tsx @@ -13,7 +13,10 @@ export const RecentlyVisitedRecorder = () => { useEffect(() => { if (!location.pathname) return; - const path = routes.find((r) => r.path === location.pathname); + const path = routes.find( + (r) => + r.path === location.pathname && r.path.indexOf('/', 1) === -1, + ); if (path) { setLastVisited({ pathName: path.path }); } else if (featureMatch?.params.featureId) {