diff --git a/www/docs/src/theme/SearchBar/index.js b/www/docs/src/theme/SearchBar/index.js index 80b95c845e..6699d85dd1 100644 --- a/www/docs/src/theme/SearchBar/index.js +++ b/www/docs/src/theme/SearchBar/index.js @@ -32,7 +32,7 @@ const convertToKebabCase = (string) => { const replaceUrl = (item) => { let { url, hierarchy } = item if (url.includes("api/store") || url.includes("/api/admin")) { - url = url.replace("#", "/") + url = url.replace("#", "") if (hierarchy.lvl2) { const index = url.lastIndexOf("/") url = diff --git a/www/reference/src/components/search/index.js b/www/reference/src/components/search/index.js index 8af62c0057..2c7ff5560d 100644 --- a/www/reference/src/components/search/index.js +++ b/www/reference/src/components/search/index.js @@ -19,7 +19,7 @@ const Search = () => { const replaceUrl = item => { let { url, hierarchy } = item if (url.includes("api/store") || url.includes("/api/admin")) { - url = url.replace("#", "/") + url = url.replace("#", "") if (hierarchy.lvl2) { const index = url.lastIndexOf("/") url =