mirror of
https://github.com/minio/docs.git
synced 2025-07-31 18:04:52 +03:00
Fix k8s search result page's pathname (#688)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user