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

Problems serving mdbook #2477

Closed
Tealk opened this issue Nov 9, 2024 · 5 comments
Closed

Problems serving mdbook #2477

Tealk opened this issue Nov 9, 2024 · 5 comments
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@Tealk
Copy link

Tealk commented Nov 9, 2024

Problem

When I use mdbook serve, I get the following errors.
The first time I click on a navigation link, I get to the correct page. http://localhost:3000/material/waffen/index.html
The second time I click, it duplicates the path http://localhost:3000/material/waffen/material/waffen/index.html
The third time, it is correct again, and so on.

Furthermore, since the last update, the menu items no longer work when expanded.

Here is an online version of the problem. https://bak.butterfly-aspect.de/

Steps

No response

Possible Solution(s)

No response

Notes

Tested with Firefox and Brave.
Book: https://codeberg.org/Moirenico/mdBook/src/branch/develop

Version

mdbook v0.4.42
@Tealk Tealk added the C-bug Category: A bug, incorrect or unintended behavior label Nov 9, 2024
@Tealk
Copy link
Author

Tealk commented Nov 9, 2024

Everything still works with the 0.4.40 used here
https://dev.moireni.co/
https://ci.codeberg.org/repos/12296/pipeline/206/config

@ehuss
Copy link
Contributor

ehuss commented Nov 9, 2024

I think you'll likely need to update the index.hbs file in the theme. It has some controls for navigation, and they changed in the latest version.

@Tealk
Copy link
Author

Tealk commented Nov 9, 2024

Yes well I should have realized, sorry for the circumstances.

@Tealk Tealk closed this as completed Nov 9, 2024
@ehuss
Copy link
Contributor

ehuss commented Nov 9, 2024

No worries. It would be nice to figure out a better way to handle updating it. I'm not sure what that would look like, but perhaps it could at least warn you about it. I should also probably make it more prominent in the release notes.

@Tealk
Copy link
Author

Tealk commented Nov 9, 2024

I could also have seen in the commits that the index.hbs was changed, I just hadn't thought about it because it is so rarely changed 😓
But a "template has been adjusted" in the changelog would also be a good hint I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants