diff --git a/layouts/partials/searchInput.html b/layouts/partials/searchInput.html
index 7aa78718d..878185927 100644
--- a/layouts/partials/searchInput.html
+++ b/layouts/partials/searchInput.html
@@ -17,24 +17,24 @@ docsearch({
facetFilters: [`lang:${language}`],
hitsPerPage: 10,
},
- transformData: function(hits) {
- hits.forEach(hit => {
- if (typeof window !== undefined) {
- var host = window.location.host
- if (host == 'kubesphere.com.cn') {
- if (language == 'en') {
- host = host + '/en'
- hit.url = hit.url.replace('kubesphere.io', host)
- } else if (language == 'zh') {
- hit.url = hit.url.replace('kubesphere.io/zh', host)
- }
- } else {
- hit.url = hit.url.replace('kubesphere.io', host)
- }
- }
- })
- return hits
- },
+ // transformData: function(hits) {
+ // hits.forEach(hit => {
+ // if (typeof window !== undefined) {
+ // var host = window.location.host
+ // if (host == 'kubesphere.com.cn') {
+ // if (language == 'en') {
+ // host = host + '/en'
+ // hit.url = hit.url.replace('kubesphere.io', host)
+ // } else if (language == 'zh') {
+ // hit.url = hit.url.replace('kubesphere.io/zh', host)
+ // }
+ // } else {
+ // hit.url = hit.url.replace('kubesphere.io', host)
+ // }
+ // }
+ // })
+ // return hits
+ // },
debug: false,
})
\ No newline at end of file