From b8a660e208333ea8ef4998c2f815411f12ce7067 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 30 Apr 2022 20:10:12 +0000
Subject: [PATCH] feat: copyable header anchors (fixes #86)
---
assets/js/search.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/assets/js/search.js b/assets/js/search.js
index facebe5..0aacb5f 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -131,7 +131,7 @@
}
const redir = (id, term) => {
- window.location.href = BASE_URL + `${id}#:~:text=${encodeURIComponent(term)}`
+ window.location.href = `${BASE_URL}${id}#:~:text=${encodeURIComponent(term)}/`
}
const formatForDisplay = id => ({
--
Gitblit v1.10.0