New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null link after clicking on search result that is the root page #39
Comments
I just encountered this bug today as well. snippet of my docusaurus.config.js
It builds and indexes fine, but when I got to search for something that exists on the root of my site. I suspect I might be able to work around the issue by leveraging client side redirect logic |
Note in case someone else bumps into this, my idea didn't work, this would have to be solved at javascript code level.
The following experimental config would often cause the local search to freeze with grey loading text in the search box / remain frozen and unclickable. Page refresh could sometimes fix it. The search results would still redirect to /null, even with this clientside redirect. (And I was able to test that the clientside redirect was working because if I refreshed the /null page it would redirect to /, or if I typed it directly into the browser and pressed enter it'd redirect, just doesn't redirect through the search functionality.) I'm just going to set the indexBaseUrl: false to avoid the issue for now. |
Site under test: https://optimistic-wilson-f4030f.netlify.app/
After typing in "Payload" and hitting enter, we're redirected to a "null" link :https://optimistic-wilson-f4030f.netlify.app/null
The slug of the page is set to "/" (it's a main page) so probably that's the issue here
Also the links displayed are "Payload#" instead of "Payload"
The text was updated successfully, but these errors were encountered: