1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00

Bugfix: Broken search logic for Kubernetes Upstream (#716)

I think this will fix the incorrect URL logic for the searchbar, and
also fixes it for the newly added docs platforms.
This commit is contained in:
Ravind Kumar
2023-01-31 14:57:23 -05:00
committed by GitHub
parent b0282bc30b
commit c3958eaff3

View File

@ -373,10 +373,16 @@ window.addEventListener("DOMContentLoaded", () => {
var platform = "";
var environment = location.hostname === "localhost" || location.hostname === "127.0.0.1" ? "dev" : "prod";
if (activePlatform === "kubernetes") {
if (activePlatform === "k8s") {
platform = "kubernetes/upstream";
} else if (activePlatform === "openshift") {
platform = "kubernetes/openshift";
} else if (activePlatform === "eks") {
platform = "kubernetes/eks";
} else if (activePlatform === "gks") {
platform = "kubernetes/gks";
} else if (activePlatform === "aks") {
platform = "kubernetes/aks";
} else {
platform = activePlatform;
}