From 4af6e42b3bd5bc9e676e4ec8db3d2d48429d77a6 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 22 May 2019 00:11:15 +0200 Subject: [website] fixed history/ajax-load system to deal with anchor links --- website/resources/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'website/resources/js') diff --git a/website/resources/js/main.js b/website/resources/js/main.js index eaaf2df5..3d18b996 100644 --- a/website/resources/js/main.js +++ b/website/resources/js/main.js @@ -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) { -- cgit