mirror of
https://github.com/alrayyes/wiki.git
synced 2025-07-11 20:31:47 +00:00
Add prefetch to graph
This commit is contained in:
parent
bd316d8249
commit
efb6c7845f
3 changed files with 87 additions and 122 deletions
assets/js
|
@ -153,7 +153,7 @@ const highlight = (content, term) => {
|
|||
|
||||
const redir = (id, term) => {
|
||||
// SPA navigation
|
||||
window.navigate(
|
||||
window.Million.navigate(
|
||||
new URL(
|
||||
`${BASE_URL.replace(/\/$/g, "")}${id}#:~:text=${encodeURIComponent(term)}/`
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue