Update 404.md

pull/107/head
johndmulhausen 2016-03-11 09:01:07 +00:00
parent e935676c49
commit 6b8252537b
1 changed files with 4 additions and 2 deletions

6
404.md
View File

@ -10,12 +10,14 @@ $( document ).ready(function() {
var doRedirect=false;
var forwardingURL=window.location.href;
for (i=0;i<oldURLs.length;i++) {
if (window.location.href.indexOf(oldURLs[i])) > -1) {
if (forwardingURL.indexOf(oldURLs[i]) > -1) {
doRedirect=true;
forwardingURL=forwardingURL.replace(oldURLs[i],"");
}
}
if (doRedirect) window.location.replace(forwardingURL);
if (doRedirect) {
window.location.replace(forwardingURL);
};
}
});
</script>