Skip to content

Commit 6b82525

Browse files
Update 404.md
1 parent e935676 commit 6b82525

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

404.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ $( document ).ready(function() {
1010
var doRedirect=false;
1111
var forwardingURL=window.location.href;
1212
for (i=0;i<oldURLs.length;i++) {
13-
if (window.location.href.indexOf(oldURLs[i])) > -1) {
13+
if (forwardingURL.indexOf(oldURLs[i]) > -1) {
1414
doRedirect=true;
1515
forwardingURL=forwardingURL.replace(oldURLs[i],"");
1616
}
1717
}
18-
if (doRedirect) window.location.replace(forwardingURL);
18+
if (doRedirect) {
19+
window.location.replace(forwardingURL);
20+
};
1921
}
2022
});
2123
</script>

0 commit comments

Comments
 (0)