We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aab444d commit dc8ac3cCopy full SHA for dc8ac3c
404.md
@@ -5,7 +5,6 @@ permalink: /404.html
5
---
6
7
<script language="JavaScript">
8
-function doFwd() {
9
var forwardingURL=window.location.pathname;
10
if (forwardingURL.charAt(forwardingURL.length - 1) != "/") forwardingURL += "/";
11
var gonnaFwd = false;
@@ -53,11 +52,11 @@ function doFwd() {
53
52
if (gonnaFwd) {
54
console.log("Forwarding to: " + newURL);
55
window.location.replace(newURL);
+ window.location.href = newURL;
56
document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
57
} else {
58
window.location.replace("/sorry/#" + forwardingURL);
59
+ window.location.href = "/sorry/#" + forwardingURL;
60
document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
61
}
-}
62
-window.onload = doFwd;
63
</script>
0 commit comments