vitest
vitest copied to clipboard
Navigating to vitest.dev/guide (no trailing slash) combines the guide and homepage
Describe the bug
Noticed this issue with the official docs.
If you navigate to the guide page without a trailing slash, it combines the homepage and guide into one. It does add the trailing slash to the URL, but it just mashes everything together. All navigation works, but it fails to properly swap what is displayed for a given route.
Reproduction
Navigate here: https://vitest.dev/guide
And you should see this:
Navigate here: https://vitest.dev/guide/
And you should see this:
System Info
Chrome 114.0.5735.90
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
This should be fixed when Vitest 1.3.0 is released.