diff options
Diffstat (limited to 'website/resources/js')
-rw-r--r-- | website/resources/js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js index 35d0620d..99ae3b19 100644 --- a/website/resources/js/main.js +++ b/website/resources/js/main.js @@ -14,7 +14,7 @@ if (self.data("clc")) return; var href = self.attr("href"); self.data("clc", true); - if (!href || href.substr(0, 4) === "http") return; + if (!href || href.substr(0, 4) === "http" || href === "/api/") return; var ext = href.substr(href.length - 4, 4); if (ext === ".xml" || ext === ".jar") return; self.on("click", function(evt) { @@ -63,6 +63,8 @@ $("#main-section").replaceWith(newH); collapseMenu(); $("a").each(captureLinkClick); + }, error: function() { + window.location = u; } }); } |