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

Summary.md parsing in a sub folder #2488

Open
anantshri opened this issue Nov 19, 2024 · 1 comment
Open

Summary.md parsing in a sub folder #2488

anantshri opened this issue Nov 19, 2024 · 1 comment
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@anantshri
Copy link

Problem

I create books where there are multiple levels of subfolders in picture.
When the page of a subfolder is opened at that point the summary.md starts pointing to the URLs in wierd ways.

Steps

example
localhost:3000/folder1/page1.html is open and assume a menu entry for folder2/page1.html is suppose to be present.

at localhost:3000 the link correctly points to folder2/page1.html however when i ope localhost:3000/folder1/page1.html now the link points to localhost:3000/folder1/folder2/page1.html

so effectively the summary.md in each folder assumes that folder as base and creates links as relative. which is wrong. summary.md links are relative to root nowhere else.

Possible Solution(s)

summary.md should link urls relative to root at max to site_url nothing else.

Notes

No response

Version

mdbook v0.4.42
@anantshri anantshri added the C-bug Category: A bug, incorrect or unintended behavior label Nov 19, 2024
@ehuss
Copy link
Contributor

ehuss commented Nov 19, 2024

I'm guessing you maybe have an index.hbs theme file from an older version? If so, that will need to be updated to the latest version since the navigation has changed.

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