We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66e1f7 commit 2611b4aCopy full SHA for 2611b4a
catalog/components/search-bar.tsx
@@ -52,9 +52,11 @@ export default function SearchBar() {
52
placeholder: "Search implementations...",
53
};
54
55
- // Only add basePath if it's not empty
+ // basePath should include the _pagefind directory
56
if (basePath) {
57
- config.basePath = basePath;
+ config.basePath = `${basePath}/_pagefind/`;
58
+ } else {
59
+ config.basePath = '/_pagefind/';
60
}
61
62
new window.PagefindUI(config);
0 commit comments