Browse Source

lunr search fix from https://github.com/praveenn77/docusaurus-lunr-search/pull/91

windhamdavid 2 years ago
parent
commit
e80e8910ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/theme/SearchBar/lunar-search.js

+ 1 - 1
src/theme/SearchBar/lunar-search.js

@@ -26,7 +26,7 @@ class LunrSearchAdapter {
                 lvl0: doc.pageTitle || doc.title,
                 lvl1: doc.type === 0 ? null : doc.title
             },
-            url: this.baseUrl !== '/' || doc.url.charAt(0) !== '/' ? this.baseUrl + doc.url : doc.url,
+            url: doc.url,
             _snippetResult: formattedContent ? {
                 content: {
                     value: formattedContent,