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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user