evidence
evidence copied to clipboard
Directories without index pages throw error during build/deployment
Bug Description
If your project contains a directory without an index.md file within it, running build will throw a 404 error. This is because a link for the missing page gets included in the breadcrumbs at the top of the page.
Expected Behavior The missing page should appear in the breadcrumbs as text only, rather than a link.
Steps To Reproduce
-
Create a new, empty directory
-
Add a markdown file to the directory (any name other than
index.md) -
Navigate to that markdown page in your app

-
Click the name of the folder in the breadcrumb - you should see a "not found" error

-
Run
npm run build- you should see a 404 error
Workarounds
- Add an
index.mdfile to all directories