File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ permalink: /404.html
5
5
---
6
6
7
7
<script language =" JavaScript " >
8
- function doFwd () {
9
8
var forwardingURL= window .location .pathname ;
10
9
if (forwardingURL .charAt (forwardingURL .length - 1 ) != " /" ) forwardingURL += " /" ;
11
10
var gonnaFwd = false ;
@@ -53,11 +52,11 @@ function doFwd() {
53
52
if (gonnaFwd) {
54
53
console .log (" Forwarding to: " + newURL);
55
54
window .location .replace (newURL);
55
+ window .location .href = newURL;
56
56
document .write (' <meta http-equiv="refresh" content="0; url=' + newURL + ' ">' )
57
57
} else {
58
58
window .location .replace (" /sorry/#" + forwardingURL);
59
+ window .location .href = " /sorry/#" + forwardingURL;
59
60
document .write (' <meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + ' ">' )
60
61
}
61
- }
62
- window .onload = doFwd;
63
62
</script >
You can’t perform that action at this time.
0 commit comments