diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 78b77653..22b50a18 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')