From cdf9c972c91b2d91ac0157d42f25633a52293f58 Mon Sep 17 00:00:00 2001 From: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Date: Mon, 30 Aug 2021 14:20:09 +0200 Subject: [PATCH] fix: formatting of links from production environment (#358) --- www/docs/src/theme/SearchBar/index.js | 2 +- www/reference/src/components/search/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 =