Jacky Zhao
2021-12-24 5bd5642c99d6d144c9932533dfdc3484bdb72b71
add toLowerCase to id
1 files modified
2 ■■■ changed files
layouts/partials/search.html 2 ●●● patch | view | raw | blame | history
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 => ({