File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ permalink: /404.html
55---
66
77<script language =" JavaScript " >
8- function doFwd () {
98 var forwardingURL= window .location .pathname ;
109 if (forwardingURL .charAt (forwardingURL .length - 1 ) != " /" ) forwardingURL += " /" ;
1110 var gonnaFwd = false ;
@@ -53,11 +52,11 @@ function doFwd() {
5352 if (gonnaFwd) {
5453 console .log (" Forwarding to: " + newURL);
5554 window .location .replace (newURL);
55+ window .location .href = newURL;
5656 document .write (' <meta http-equiv="refresh" content="0; url=' + newURL + ' ">' )
5757 } else {
5858 window .location .replace (" /sorry/#" + forwardingURL);
59+ window .location .href = " /sorry/#" + forwardingURL;
5960 document .write (' <meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + ' ">' )
6061 }
61- }
62- window .onload = doFwd;
6362</script >
You can’t perform that action at this time.
0 commit comments