Skip to content

Commit 2611b4a

Browse files
committed
Fix loading of data
1 parent e66e1f7 commit 2611b4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

catalog/components/search-bar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ export default function SearchBar() {
5252
placeholder: "Search implementations...",
5353
};
5454

55-
// Only add basePath if it's not empty
55+
// basePath should include the _pagefind directory
5656
if (basePath) {
57-
config.basePath = basePath;
57+
config.basePath = `${basePath}/_pagefind/`;
58+
} else {
59+
config.basePath = '/_pagefind/';
5860
}
5961

6062
new window.PagefindUI(config);

0 commit comments

Comments
 (0)