diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 78b77653f..22b50a182 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -127,7 +127,7 @@
}
const redir = (id, term) => {
- window.location.href = {{.Site.BaseURL}} + `${id}#:~:text=${encodeURIComponent(term)}`
+ window.location.href = "{{.Site.BaseURL}}" + `${id}#:~:text=${encodeURIComponent(term)}`
}
const source = document.getElementById('search-bar')