history router mode search result fix
Summary
in History mode, search results should not link to hash routes, but to regular routes.
What kind of change does this PR introduce?
For any code change,
- [ ] Related documentation has been updated if needed
- [x] Related tests have been updated or tests have been added
Does this PR introduce a breaking change? (check one)
- [ ] Yes
- [x] No
If yes, please describe the impact and migration path for existing applications:
Related issue, if any:
Tested in the following browsers:
- [x] Chrome
- [ ] Firefox
- [x] Safari
- [ ] Edge
- [ ] IE
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/docsifyjs/docsify-preview/PWJQzpZ3mQoB6jc42Qwc1iSw9ziM
✅ Preview: https://docsify-preview-git-fork-ayu-666-patch-1-docsifyjs.vercel.app
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 90867f978e4167e6cbb2efa3bee495e94de7d865:
| Sandbox | Source |
|---|---|
| docsify-template | Configuration |
@ayu-666 --
Please provide a more detailed description of the issue being fixed, steps to reproduce, screenshots (if appropriate), etc. Without this kind of more information, PRs can not be tested and approved. Thanks!
Based on the change, this makes search results not use # in front of URLs for search results, because in History mode we do not want to navigate to hashes.
@ayu-666 can you please add a test for this?
when using the history mode, navigate to hash link will cause 404