Update 404.md
parent
e935676c49
commit
6b8252537b
6
404.md
6
404.md
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue