Skip to content

Commit

Permalink
Update 404.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johndmulhausen committed Mar 11, 2016
1 parent e935676 commit 6b82525
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 404.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6b82525

Please sign in to comment.