-
Notifications
You must be signed in to change notification settings - Fork 52
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
[Bug report] Incorrect base in plugin-docsearch #227
Comments
I think this is a basic that you should use the latest v2 before opening any issues. |
Hello @SherkeyXD. This issue is marked as |
I've already tested locally with the newest version when writing this issue, and the problem still exists.
And the commit 7e56412 first appears in v2.0.0-rc.39, which is just the deployed version. |
The problem is that the Edit: the href is correct, so the problem should be the |
Then you should provide a reproducion |
Description
When the base is not the root, like
/docs
, something weird is happening.Left click the search result, you got the right base, like
/docs
.However, if you press enter, the base is repeated twice, like
/docs/docs
.I think this maybe be related to 7e56412, where two different bases appear.
ecosystem/plugins/search/plugin-docsearch/src/client/composables/useDocsearchShim.ts
Line 31 in 2a4768d
ecosystem/plugins/search/plugin-docsearch/src/client/composables/useDocsearchShim.ts
Line 50 in 2a4768d
One is
__DOCSEARCH_INDEX_BASE__
, and the other is__VUEPRESS_BASE__
.Reproduction
https://github.com/MaaAssistantArknights/MaaAssistantArknights/tree/dev/docs
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: