From db33735f26ace1a065b5aaca6fe34544c600422c Mon Sep 17 00:00:00 2001 From: mose Date: Wed, 28 Aug 2019 14:19:14 +0800 Subject: [PATCH] better redirect on 404 --- site/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/404.html b/site/404.html index 3adc017..6c355a3 100644 --- a/site/404.html +++ b/site/404.html @@ -6,7 +6,7 @@ var currentURL = window.location.href; if (/crapaud-fou.gitlab.io\/portail/.test(currentURL)) { newURL = currentURL.replace(/crapaud-fou.gitlab.io\/portail/g, "crapaud-fou.org"); - window.location = newURL; + window.location.replace(newURL); }