From ca42f71d961e16a3a101ff268add38c3151c8006 Mon Sep 17 00:00:00 2001 From: Jenny-Jiani <70129215+Jenny-Jiani@users.noreply.github.com> Date: Mon, 8 Jun 2026 18:03:09 +0800 Subject: [PATCH] Update search-input.html --- _includes/search-input.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/search-input.html b/_includes/search-input.html index 94b1823..0f5eda8 100644 --- a/_includes/search-input.html +++ b/_includes/search-input.html @@ -200,8 +200,12 @@ } window.location.href = "/" + getDoumentName(product) + "/docs/" + reporType + "/search.html?lang="+ (lang?lang:"core") + "&q=" + $("#searchbox").val() } else { + if (document.URL.indexOf("/docs/") >= 0) { let preUrl = document.URL.split("/docs/")[0] window.location.href = preUrl + "/docs/search.html?q=" + $("#searchbox").val() + } else { + window.location.href = "/faq/search.html?q=" + $("#searchbox").val() + } } }) \ No newline at end of file