diff --git a/layouts/partials/search.html b/layouts/partials/search.html index b12b731..9809de6 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -145,7 +145,7 @@ } 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 => ({ @@ -252,4 +252,4 @@ }) }) - \ No newline at end of file +