[website] fixed history/ajax-load system to deal with anchor links

This commit is contained in:
Reinier Zwitserloot committed 2019-05-22 00:11:15 +02:00
1 parent 8f69331ce8
commit 4af6e42b3b
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@
if (self.data("clc")) return;
var href = self.attr("href");
self.data("clc", true);
if (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
if (!href || href.substr(0, 4) === "http" || href.substr(0, 1) === "#" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
var ext = href.substr(href.length - 4, 4);
if (ext === ".xml" || ext === ".jar" || ext === ".pdf") return;
self.on("click", function(evt) {