Linking to other markdown files in the book's source generally works as expected. The exception are links to 'README.md' files. Clicking on such links in the HTML version of the book results in a 404 (Document not found) error.
Steps to reproduce:
-
Create a book's source as follows:
src/book.toml:
[book]
authors = []
language = "en"
multilingual = false
src = "src"
src/SUMMARY.md:
# Summary
- [Chapter 1](./chapter_1/README.md)
- [Chapter 2](./chapter_2/README.md)
- [Chapter 2.1](./chapter_2/chapter_2.1.md)
src/chapter_1/README.md:
# Chapter 1
- Link to [Chapter 2](../chapter_2/README.md)
- Link to [Chapter 2.1](../chapter_2/chapter_2.1.md)
src/chapter_2/README.md:
src/chapter_2/chapter_2.1.md:
-
Build and serve the book: mdbook serve
-
Open the book in your browser: http://localhost:3000
-
Click on the links in Chapter 1: while the link to Chapter 2.1 works fine, the link to Chapter 2 doesn't.
Linking to other markdown files in the book's source generally works as expected. The exception are links to 'README.md' files. Clicking on such links in the HTML version of the book results in a 404 (Document not found) error.
Steps to reproduce:
Create a book's source as follows:
src/book.toml:src/SUMMARY.md:src/chapter_1/README.md:src/chapter_2/README.md:# Chapter 2src/chapter_2/chapter_2.1.md:# Chapter 2.1Build and serve the book:
mdbook serveOpen the book in your browser:
http://localhost:3000Click on the links in Chapter 1: while the link to Chapter 2.1 works fine, the link to Chapter 2 doesn't.