From 9a58e19b9f0cfda689b55e89c9fc91c0e7f08067 Mon Sep 17 00:00:00 2001 From: Andrei Tuicu Date: Mon, 22 Apr 2024 12:10:34 +0200 Subject: [PATCH 1/3] Revert "25 - 404 Handler: Improvement (#246)" This reverts commit 895aa0af1e6051d9a0a5770690b8f35d9c04f0bd. --- 404.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/404.html b/404.html index 26cb652..a2d452d 100644 --- a/404.html +++ b/404.html @@ -30,20 +30,23 @@ if (match) { locale = `/${match[1]}`; } - const snowErrorPage = `https://www.servicenow.com${locale}/page-not-found.html`; - if (window.location.hostname.endsWith('.servicenow.com') || window.location.hostname === 'servicenow.com') { + const snowErrorPage = `https://servicenow.com${locale}/page-not-found.html`; + if (window.location.pathname.endsWith('/test404') && // canary to test in the prod domain + (window.location.hostname.endsWith('.servicenow.com') || window.location.hostname === 'servicenow.com')) { document.body.innerHTML = ''; const iframe = document.createElement('iframe'); iframe.id = 'snow-error-frame'; iframe.src = snowErrorPage; document.body.appendChild(iframe); + } else { + window.location.href = snowErrorPage; } }); - Page Not Found + Not found \ No newline at end of file From 475599fbe12f874ce9b052f8160d467bb4c06954 Mon Sep 17 00:00:00 2001 From: Andrei Tuicu Date: Mon, 22 Apr 2024 12:10:37 +0200 Subject: [PATCH 2/3] Revert "25 - 404 Handler: Improvement (#247)" This reverts commit b96fae40f3dd0aa902311ac9dc17dd6cd0dec1dd. --- 404.html | 1 - 1 file changed, 1 deletion(-) diff --git a/404.html b/404.html index a2d452d..aa40208 100644 --- a/404.html +++ b/404.html @@ -2,7 +2,6 @@ - Page not found