diff --git a/source/_static/js/instantSearch.js b/source/_static/js/instantSearch.js index 34385122..7b0ef8cc 100644 --- a/source/_static/js/instantSearch.js +++ b/source/_static/js/instantSearch.js @@ -372,7 +372,6 @@ window.addEventListener("DOMContentLoaded", () => { if (searchInputEl.value && document.activeElement === searchInputEl) { var platform = ""; var environment = location.hostname === "localhost" || location.hostname === "127.0.0.1" ? "dev" : "prod"; - var pathname = environment === "dev" ? "/search.html" : `/docs/minio/${platform}search.html`; if (activePlatform === "kubernetes") { platform = "kubernetes/upstream"; @@ -382,6 +381,8 @@ window.addEventListener("DOMContentLoaded", () => { platform = activePlatform; } + var pathname = environment === "dev" ? "/search.html" : `/docs/minio/${platform}/search.html`; + setTimeout(() => { window.location.pathname = pathname; }, 500); diff --git a/source/_templates/search.html b/source/_templates/search.html index 689067fa..171ee34f 100644 --- a/source/_templates/search.html +++ b/source/_templates/search.html @@ -49,7 +49,9 @@ {%- include "toc.html" %}