diff --git a/404.html b/404.html index aa40208..8c254e8 100644 --- a/404.html +++ b/404.html @@ -30,22 +30,19 @@ locale = `/${match[1]}`; } 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')) { + if (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; } });
- Not found + Page Not Found