diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 11a774b84..8a2b9a2cf 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -68,8 +68,8 @@ export default function Header(): JSX.Element { }; const visitedFlowPathBefore = () => { - const lastThreeVisitedPaths = routeHistory.slice(-3); - return lastThreeVisitedPaths.some((path) => path.includes("/flow/")); + const last100VisitedPaths = routeHistory.slice(-99); + return last100VisitedPaths.some((path) => path.includes("/flow/")); }; const showArrowReturnIcon = diff --git a/src/frontend/src/stores/locationStore.ts b/src/frontend/src/stores/locationStore.ts index 8ef3554e0..a57390343 100644 --- a/src/frontend/src/stores/locationStore.ts +++ b/src/frontend/src/stores/locationStore.ts @@ -7,7 +7,7 @@ export const useLocationStore = create((set, get) => ({ let routeHistoryArray = get().routeHistory; routeHistoryArray.push(location); - if (routeHistoryArray?.length > 9) { + if (routeHistoryArray?.length > 100) { routeHistoryArray.shift(); set({ routeHistory: routeHistoryArray,