diff --git a/_templates/404.html b/_templates/404.html index fbfcbdf56b766c585cb37e321fed8028f4524571..4215fbdfeb8c48cfa8a37201a29a1eafe1f3771b 100644 --- a/_templates/404.html +++ b/_templates/404.html @@ -10,7 +10,7 @@ let currentUrl = window.location.href; // Flag to check if valid redirect is found - let redirectFount = false; + let redirectFound = false; // Iterate over the redirect_folders key-value pairs for (const [key, value] of Object.entries(redirectFolders)) { @@ -27,8 +27,8 @@ .then(response => { if (response.ok) { // Valid redirect is found - let redirectFount = true; - + let redirectFound = true; + // Update the heading with the correct information const headingElement = document.getElementById('pageHeading'); if (headingElement) { @@ -75,7 +75,7 @@ clearInterval(countdownInterval); window.location.href = newUrl; } - }, 1000); + }, 1000);5.4 // Event listener for "Redirect Now" button document.getElementById('redirectNow').addEventListener('click', () => { @@ -102,7 +102,7 @@ } } - if (!redirectFount) { + if (!redirectFound) { // In case the link test doesn't include redirectFolders const headingElement = document.getElementById('pageHeading'); if (headingElement) { diff --git a/requirements.txt b/requirements.txt index 592ffd72b3f452f0edee1459f1ca7bdce1335c8d..5611468cb89a0ba4c0527e14fd59cea45a30898f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ snowballstemmer==2.2.0 Sphinx==7.2.6 sphinx-autobuild==2021.3.14 sphinx-copybutton==0.5.2 -pydata-sphinx-theme==0.15.4 +pydata-sphinx-theme==0.16 sphinx-serve==1.0.1 sphinx-tabs==3.4.4 sphinx_design==0.5.0