aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/domfilter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/domfilter.ts b/static/js/domfilter.ts
index a33faca..8900e2f 100644
--- a/static/js/domfilter.ts
+++ b/static/js/domfilter.ts
@@ -96,7 +96,7 @@
const hashed = link.pathname === url.pathname;
if (hashed) return;
fetch(url, "GET", function (http) {
- filter(url.href, http);
+ if (filter(url, http) === false) return self.location.href = url;
persist();
self.document.dispatchEvent(new CustomEvent("URLChangedCustomEvent", { bubbles: true }));
});