diff --git a/www/docs/src/theme/SearchBar/index.js b/www/docs/src/theme/SearchBar/index.js index 6699d85dd1..8a02964519 100644 --- a/www/docs/src/theme/SearchBar/index.js +++ b/www/docs/src/theme/SearchBar/index.js @@ -45,8 +45,12 @@ const replaceUrl = (item) => { } function Hit({ hit, children }) { - let url = replaceUrl(hit) - return {children} + if (hit.url.includes("/api/store") || hit.url.includes("/api/admin")) { + let url = replaceUrl(hit) + return {children} + } + + return {children} } function ResultsFooter({ state, onClose }) {