What version of starlight are you using?
0.1.2
What version of astro are you using?
2.6.1
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Expected: sidebar links should not have a trailing slash when setting Astro's build.format config to file
Actual: they have a trailing slash, which causes the links to 404 in production builds
How to reproduce:
- Clone the
build-format-file branch of this repo
- Comment out line 8 of the Astro config that sets the base path to
/docs (sorry, it's a temporary workaround for GitHub pages)
npm run dev to see the trailing / OR npm run build && npm run preview to get the 404s
- Click any link in the sidebar
- Smile at everyone's favorite sad piece of paper :)
Link to Minimal Reproducible Example
https://github.com/mergentlabs/docs/tree/build-format-file
Participation
What version of
starlightare you using?0.1.2
What version of
astroare you using?2.6.1
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Expected: sidebar links should not have a trailing slash when setting Astro's build.format config to
fileActual: they have a trailing slash, which causes the links to 404 in production builds
How to reproduce:
build-format-filebranch of this repo/docs(sorry, it's a temporary workaround for GitHub pages)npm run devto see the trailing/ORnpm run build && npm run previewto get the 404sLink to Minimal Reproducible Example
https://github.com/mergentlabs/docs/tree/build-format-file
Participation