[Bug]: Unreliable behavour of slashes \
in sidebar configuration for page paths
#740
Labels
🐞 bug
Something isn't working
\
in sidebar configuration for page paths
#740
Version
System: OS: macOS 14.3.1 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 1.12 GB / 16.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 122.0.6261.111 Safari: 17.3.1 npmPackages: rspress: ^1.0.0 => 1.13.2
Details
I have a sidebar configuration in the
rspress.config.ts
file. My content structure makes more sense to be configured this way instead of_meta.json
. Following the sidebar configuration from the docs, I have the following config (also available in the reproduce link)I am hosting this in GitHub Pages at this link: https://toteto.github.io/test-rspress/
When I navigate to https://toteto.github.io/test-rspress/guide/ my expectations is to get the
guide/index.md
page with the sidebar on the side with both theMarkdown & MDX
andHello
items. However the case is that the sidebar is not being shown.In order to get it working, i need to navigate to https://toteto.github.io/test-rspress/guide.html
Another way to get it working is to change the
link
to include a slash at the endOr to have the full path
To me it looks like it is some sidebar matching issues in the render logic for the sidebar
Reproduce link
https://github.com/toteto/test-rspress/tree/gh-pages
Reproduce Steps
The text was updated successfully, but these errors were encountered: