Fix for char offset

This commit is contained in:
John Mulhausen 2016-10-06 14:46:42 -07:00
parent 6559df42aa
commit 79695f49c9
1 changed files with 3 additions and 3 deletions

6
404.md
View File

@ -7,7 +7,7 @@ permalink: /404.html
<script language="JavaScript">
function doFwd() {
var forwardingURL=window.location.pathname;
if (forwardingURL.charAt(forwardingURL.length) != "/") forwardingURL += "/";
if (forwardingURL.charAt(forwardingURL.length - 1) != "/") forwardingURL += "/";
var gonnaFwd = false;
var newURL = "";
console.log(forwardingURL);
@ -53,10 +53,10 @@ function doFwd() {
if (gonnaFwd) {
console.log("Forwarding to: " + newURL);
//window.location.replace(newURL);
document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
//document.write('<meta http-equiv="refresh" content="0; url=' + newURL + '">')
} else {
//window.location.replace("/sorry/#" + forwardingURL);
document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
//document.write('<meta http-equiv="refresh" content="0; url=/sorry/#' + forwardingURL + '">')
}
}
window.onload = doFwd;