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

Documentation website does not respect selected mongoose version when clicking on links that go the api docs #12582

Closed
2 tasks done
kevo1ution opened this issue Oct 23, 2022 · 0 comments · Fixed by #12623
Closed
2 tasks done
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@kevo1ution
Copy link
Contributor

kevo1ution commented Oct 23, 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

Node.js version

n/a

MongoDB server version

n/a

Typescript version (if applicable)

No response

Description

When navigating on the documentation site for mongoose v5, clicking on links that lead to docs/api ignore the fact that you have v5 selected.

This problem I think is similar to the issue here #12548

Steps to Reproduce

  1. navigate to https://mongoosejs.com/docs/5.x/docs/guide.html
  2. click Queries under Guides.
  3. Click any of the query links: for example, Model.deleteMany()

mongoose_docs_bug_10_23_2022

Expected Behavior

I expected v5 to stay selected. The workaround I had to do is change the url it links to, to have the base url https://mongoosejs.com/docs/5.x/docs/.
So https://mongoosejs.com/docs/api.html#model_Model.deleteMany becomes https://mongoosejs.com/docs/5.x/docs/api.html#model_Model.deleteMany. (This is mildly annoying)

@IslandRhythms IslandRhythms added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Oct 24, 2022
@vkarpov15 vkarpov15 added this to the 6.8 milestone Oct 25, 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

Successfully merging a pull request may close this issue.

3 participants