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) {
|
if (searchInputEl.value && document.activeElement === searchInputEl) {
|
||||||
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";
|
||||||
var pathname = environment === "dev" ? "/search.html" : `/docs/minio/${platform}search.html`;
|
|
||||||
|
|
||||||
if (activePlatform === "kubernetes") {
|
if (activePlatform === "kubernetes") {
|
||||||
platform = "kubernetes/upstream";
|
platform = "kubernetes/upstream";
|
||||||
@ -382,6 +381,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
platform = activePlatform;
|
platform = activePlatform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var pathname = environment === "dev" ? "/search.html" : `/docs/minio/${platform}/search.html`;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.pathname = pathname;
|
window.location.pathname = pathname;
|
||||||
}, 500);
|
}, 500);
|
||||||
|
@ -49,7 +49,9 @@
|
|||||||
{%- include "toc.html" %}
|
{%- include "toc.html" %}
|
||||||
|
|
||||||
<div class="content__main" id="search-documentation">
|
<div class="content__main" id="search-documentation">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
<h1>Search</h1>
|
||||||
|
|
||||||
<div id="search">
|
<div id="search">
|
||||||
<div class="search__inner">
|
<div class="search__inner">
|
||||||
<div id="search-box"></div>
|
<div id="search-box"></div>
|
||||||
|
Reference in New Issue
Block a user