Skip to content

Commit d8a7504

Browse files
authored
Merge pull request #252 from dynamsoft-docs/preview
Update search-input.html
2 parents c1120f1 + ca42f71 commit d8a7504

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

_includes/search-input.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@
200200
}
201201
window.location.href = "/" + getDoumentName(product) + "/docs/" + reporType + "/search.html?lang="+ (lang?lang:"core") + "&q=" + $("#searchbox").val()
202202
} else {
203+
if (document.URL.indexOf("/docs/") >= 0) {
203204
let preUrl = document.URL.split("/docs/")[0]
204205
window.location.href = preUrl + "/docs/search.html?q=" + $("#searchbox").val()
206+
} else {
207+
window.location.href = "/faq/search.html?q=" + $("#searchbox").val()
208+
}
205209
}
206210
})
207211
</script>

0 commit comments

Comments
 (0)