URLs do not respect `trailingSlash`
Closed this issue · 3 comments
Describe the bug
URLs in the sidebar & prev/next buttons don't respect trailingSlash
, leading to an extra redirect on some hosts.
To Reproduce
- Go to https://starlight-blog-docs.vercel.app/blog/
- Hover over any link in the sidebar, or the prev/next buttons
Expected behavior
For URLs to end with /
How often does this bug happen?
Every time
System Info
No response
Additional Context
No response
Thanks for the report.
I'm a bit confused about the repro as the plugin docs are not configured with any trailingSlash
option and from a quick look, sidebar links are generated using a getPathWithBase()
function which should respect the option if specified 🤔
Adding trailingSlash: 'always'
to the configuration seems to also change the generated links to include a trailing slash.
oh yeah, replicated locally too. looks like that was missing from my repro 😅. for content this support thread is what I thought was affected. looks like it must be a different issue though.
Thanks for linking the thread, I'll go take a look right now.