Jacky Zhao
2021-12-24 5bd5642c99d6d144c9932533dfdc3484bdb72b71
add toLowerCase to id
1 files modified
4 ■■■■ changed files
layouts/partials/search.html 4 ●●●● 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 => ({
@@ -252,4 +252,4 @@
        })
    })
</script>
</script>