Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 89965613 authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix 404 text rendering

parent 2e609858
Branches
Tags
1 merge request!175PB2 documentation and UI changes
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
.then(response => { .then(response => {
if (response.ok) { if (response.ok) {
// Valid redirect is found // Valid redirect is found
let redirectFound = true; redirectFound = true;
// Update the heading with the correct information // Update the heading with the correct information
const headingElement = document.getElementById('pageHeading'); const headingElement = document.getElementById('pageHeading');
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
clearInterval(countdownInterval); clearInterval(countdownInterval);
window.location.href = newUrl; window.location.href = newUrl;
} }
}, 1000);5.4 }, 1000);
// Event listener for "Redirect Now" button // Event listener for "Redirect Now" button
document.getElementById('redirectNow').addEventListener('click', () => { document.getElementById('redirectNow').addEventListener('click', () => {
...@@ -93,6 +93,9 @@ ...@@ -93,6 +93,9 @@
countdownActive = false; countdownActive = false;
clearInterval(countdownInterval); clearInterval(countdownInterval);
}); });
} else {
// If the response is not OK, proceed to check other redirects
console.log(`No valid page found at ${newUrl}`);
} }
}) })
.catch(error => { .catch(error => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment