From d652b512c310dbe04ecfa57e9e9b8dc554300ae5 Mon Sep 17 00:00:00 2001
From: Kasper Fabricius Kristensen
<45367945+kasperkristensen@users.noreply.github.com>
Date: Wed, 1 Sep 2021 08:54:20 +0200
Subject: [PATCH] fix: docusaurus link behaviour (#363)
---
www/docs/src/theme/SearchBar/index.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
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 }) {