better redirect on 404

This commit is contained in:
mose 2019-08-28 14:19:14 +08:00
parent c510ad3f03
commit db33735f26

View file

@ -6,7 +6,7 @@
var currentURL = window.location.href; var currentURL = window.location.href;
if (/crapaud-fou.gitlab.io\/portail/.test(currentURL)) { if (/crapaud-fou.gitlab.io\/portail/.test(currentURL)) {
newURL = currentURL.replace(/crapaud-fou.gitlab.io\/portail/g, "crapaud-fou.org"); newURL = currentURL.replace(/crapaud-fou.gitlab.io\/portail/g, "crapaud-fou.org");
window.location = newURL; window.location.replace(newURL);
} }
</script> </script>
</head> </head>