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

Clicking the same version from the version dropdown takes you to the home page #6657

Closed
4 tasks done
syeda-git opened this issue Jan 16, 2024 · 3 comments
Closed
4 tasks done
Labels
needs reproduction Issue lacks a minimal reproduction .zip file working as intended Issue reports behavior in line with specification

Comments

@syeda-git
Copy link

Context

No response

Bug description

I am using Mike for the version picker function. If there are two versions and you select the other version, the same page in that version show up. However, if you click the same version, you are taken to the Home page of the version.
The expected behavior should be to load the current page and not go to the Home page of the selected version.

Related links

Reproduction

https://syeda-git.github.io/mkdocs-sandbox/2.0/about/

Steps to reproduce

  1. Open the link/page provided above.
  2. Click 2.0 from the version dropdown.
  3. You are taken to the Home page of 2.0.
  4. Expected behavior - The current page of 2.0 should be reloaded.

Browser

No response

Before submitting

@syeda-git syeda-git changed the title Clicking the same version from the version dropdown takes you the home page Clicking the same version from the version dropdown takes you to the home page Jan 16, 2024
@squidfunk squidfunk added the needs investigation Issue must be investigated by the maintainers label Jan 17, 2024
@squidfunk
Copy link
Owner

squidfunk commented Jan 18, 2024

Thanks for reporting. Unfortunately, this issue does not include a self-contained and minimal reproduction, as demanded by our bug reporting guidelines, so we're unable to investigate. Yes, I can see that the error happens on your site, but we don't have the possibility to debug it. Note that our version example repository does not exhibit this behavior. If you are on version 0.3 (built with Material for MkDocs 8.x), and click on the version selector, you stay on the same page. If you witch to 0.2, the error is prevalent, but 0.2 was built with Material for MkDocs 7.x, so the error was fixed in the meantime.

Thus, this issue is not reproducible and can be closed. Next time, please provide a reproduction right away. Thank you!

@squidfunk squidfunk added needs reproduction Issue lacks a minimal reproduction .zip file working as intended Issue reports behavior in line with specification and removed needs investigation Issue must be investigated by the maintainers labels Jan 18, 2024
@syeda-git
Copy link
Author

@squidfunk This defect is for a use case where there are more than one versions of the doc. The info plugin creates a zip for a version. So, i have to upload at least two zip files and you have to merge them. Is that fine or is there any other way?

@squidfunk
Copy link
Owner

I don't think two reproductions are necessary. Please create the most basic reproduction and provide steps for us, i.e., something like:

  1. Unzip reproduction
  2. Deploy with mike with ...
  3. etc.

Also, please, please, please make sure to go through all steps mentioned in our bug reporting guide, most importantly upgrading to the latest version. Additionally, did you check the link to our example repository? Does that work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Issue lacks a minimal reproduction .zip file working as intended Issue reports behavior in line with specification
Projects
None yet
Development

No branches or pull requests

2 participants