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

Fix k8s search result page's pathname (#688)

This commit is contained in:
Rushan
2022-12-30 23:35:01 +04:00
committed by GitHub
parent 376f37f69e
commit 845f0ed15c
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -50,6 +50,8 @@
<div class="content__main" id="search-documentation">
{% block body %}
<h1>Search</h1>
<div id="search">
<div class="search__inner">
<div id="search-box"></div>