We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e935676 commit 6b82525Copy full SHA for 6b82525
404.md
@@ -10,12 +10,14 @@ $( document ).ready(function() {
10
var doRedirect=false;
11
var forwardingURL=window.location.href;
12
for (i=0;i<oldURLs.length;i++) {
13
- if (window.location.href.indexOf(oldURLs[i])) > -1) {
+ if (forwardingURL.indexOf(oldURLs[i]) > -1) {
14
doRedirect=true;
15
forwardingURL=forwardingURL.replace(oldURLs[i],"");
16
}
17
18
- if (doRedirect) window.location.replace(forwardingURL);
+ if (doRedirect) {
19
+ window.location.replace(forwardingURL);
20
+ };
21
22
});
23
</script>
0 commit comments