mirror of
https://github.com/minio/docs.git
synced 2025-07-28 19:42:10 +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) {
|
||||
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);
|
||||
|
@ -49,7 +49,9 @@
|
||||
{%- include "toc.html" %}
|
||||
|
||||
<div class="content__main" id="search-documentation">
|
||||
{% block body %}
|
||||
{% block body %}
|
||||
<h1>Search</h1>
|
||||
|
||||
<div id="search">
|
||||
<div class="search__inner">
|
||||
<div id="search-box"></div>
|
||||
|
Reference in New Issue
Block a user