From 5bd5642c99d6d144c9932533dfdc3484bdb72b71 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Fri, 24 Dec 2021 09:48:22 -0500 Subject: [PATCH] add toLowerCase to id --- layouts/partials/search.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/search.html b/layouts/partials/search.html index b12b731ac..9809de67e 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 +