mirror of
https://github.com/minio/docs.git
synced 2025-08-06 14:42:56 +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 platform = "";
|
||||||
var environment = location.hostname === "localhost" || location.hostname === "127.0.0.1" ? "dev" : "prod";
|
var environment = location.hostname === "localhost" || location.hostname === "127.0.0.1" ? "dev" : "prod";
|
||||||
|
|
||||||
if (activePlatform === "kubernetes") {
|
if (activePlatform === "k8s") {
|
||||||
platform = "kubernetes/upstream";
|
platform = "kubernetes/upstream";
|
||||||
} else if (activePlatform === "openshift") {
|
} else if (activePlatform === "openshift") {
|
||||||
platform = "kubernetes/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 {
|
} else {
|
||||||
platform = activePlatform;
|
platform = activePlatform;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user