We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1120f1 + ca42f71 commit d8a7504Copy full SHA for d8a7504
1 file changed
_includes/search-input.html
@@ -200,8 +200,12 @@
200
}
201
window.location.href = "/" + getDoumentName(product) + "/docs/" + reporType + "/search.html?lang="+ (lang?lang:"core") + "&q=" + $("#searchbox").val()
202
} else {
203
+ if (document.URL.indexOf("/docs/") >= 0) {
204
let preUrl = document.URL.split("/docs/")[0]
205
window.location.href = preUrl + "/docs/search.html?q=" + $("#searchbox").val()
206
+ } else {
207
+ window.location.href = "/faq/search.html?q=" + $("#searchbox").val()
208
+ }
209
210
})
211
</script>
0 commit comments