Closed evaera closed 1 year ago
Related issue from my project (which depends on this project) where a user reported this: https://github.com/evaera/moonwave/issues/116
Have same issue
Having the same issue with latest version of docusaurus-lunr-search
.
I reverted to v2.1.15
and it works properly with this version.
@val1984, probably you should just update docusaurus to latest version in order to make docusaurus-lunr-search
work fine with version later than 2.1.15
@Lullabyq This is with the latest stable version of Docusaurus: v2.3.1.
ok, i have another guess, have you swizzled SearchBar
component?
you can check it easily in src/theme
, SearchBar folder should not be there
@Lullabyq Thank you, I reran the swizzling command from the docs and now the URLs are correct!
@evaera @efectn Can you try re-running the swizzling command from the docs?
npm run swizzle docusaurus-lunr-search SearchBar -- --eject --danger
Or if you're using pnpm like me:
pnpm swizzle docusaurus-lunr-search SearchBar --eject --danger
fixed in new version, try 3.1.0
https://praveenn77.github.io/docusaurus-lunr-search-demo/
Note!: Delete your themes/SearchBar folder before upgrading version.
And swizzle
is no more needed
The URL is wrong.
Expected:
https://lelouch77.github.io/docusaurus-lunr-search-demo/blog/welcome
Actual:https://lelouch77.github.io/docusaurus-lunr-search-demo/docs/blog/welcome