Skip to content
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

Web documentation search bar doesn't respect selected package version #12548

Closed
2 tasks done
zthart opened this issue Oct 12, 2022 · 0 comments
Closed
2 tasks done

Web documentation search bar doesn't respect selected package version #12548

zthart opened this issue Oct 12, 2022 · 0 comments
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@zthart
Copy link

zthart commented Oct 12, 2022

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

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 and 6.x.x hosted at mongoosejs.com share the same layout and include a searchbar in the top left. When you're browsing docs for 5.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 the 5.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

  1. Navigate to https://mongoosejs.com/docs/5.x/
  2. Select "read the docs"
  3. Type any query into the search bar, hit enter

Expected Behavior

Searching on the 5.x documentation returns search results for pages within the 5.x documentation, rather than the latest docs.

@IslandRhythms IslandRhythms added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Oct 17, 2022
@vkarpov15 vkarpov15 added this to the 6.6.9 milestone Oct 24, 2022
@vkarpov15 vkarpov15 modified the milestones: 6.7.3, 6.7.4, 6.7.5 Nov 22, 2022
@vkarpov15 vkarpov15 modified the milestones: 6.8.1, 6.8.2 Dec 16, 2022
vkarpov15 added a commit that referenced this issue Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

No branches or pull requests

3 participants