From 1d1c01d4e2efdc0ac4a74d57396a7e789eee38bf Mon Sep 17 00:00:00 2001 From: Akrm Al-Hakimi Date: Thu, 6 Mar 2025 00:26:01 -0500 Subject: [PATCH] fix: docs bug in issue #35 --- docs/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/index.js b/docs/index.js index cf4c69a..25756a3 100644 --- a/docs/index.js +++ b/docs/index.js @@ -321,12 +321,8 @@ document.addEventListener('DOMContentLoaded', () => { const pageId = window.location.hash.slice(1); if (!pageId) { - const lastPage = localStorage.getItem('currentPage'); - if (lastPage) { - navigateToPage(lastPage); - } else { - navigateToPage('introduction'); - } + // Always navigate to introduction when no hash is present + navigateToPage('introduction'); } else { loadPage(pageId); }