add toLowerCase to id

hugo
Jacky Zhao 3 years ago
parent 48d01810c4
commit 5bd5642c99

@ -145,7 +145,7 @@
} }
const redir = (id, term) => { const redir = (id, term) => {
window.location.href = "{{.Site.BaseURL}}" + `${id}#:~:text=${encodeURIComponent(term)}` window.location.href = "{{.Site.BaseURL}}" + `${id.toLowerCase()}#:~:text=${encodeURIComponent(term)}`
} }
const fetch = id => ({ const fetch = id => ({

Loading…
Cancel
Save