Web documentation search bar doesn't respect selected package version #12548
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Prerequisites
Mongoose version
5.x.x, 6.x.x
Node.js version
n/a
MongoDB server version
n/a
Typescript version (if applicable)
n/a
Description
The docs for versions
5.x.x
and6.x.x
hosted at mongoosejs.com share the same layout and include a searchbar in the top left. When you're browsing docs for5.x.x
versions of mongoose, the search bar is unaware of the version, and will redirect you from a/docs/5.x/docs
url to/docs/search.html?
, which serves the "latest" docs. Effectively, the search function does not exist for the5.x
package, but the interface makes it appear as though they can be searched. This does not affect earlier package versions using a different doc site layout without a search bar.Steps to Reproduce
Expected Behavior
Searching on the 5.x documentation returns search results for pages within the 5.x documentation, rather than the latest docs.
The text was updated successfully, but these errors were encountered: