-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(v2): doc path special char (space or other) should lead to a valid slug #3262
Conversation
Deploy preview for docusaurus-2 ready! Built with commit d1ed622 |
Deploy preview for docusaurus-2 ready! Built with commit b9ff956 |
Deploy preview for docusaurus-2 ready! Built with commit 663deab |
@slorber Error: Unable to resolve valid document slug. Maybe your slug frontmatter is incorrect? Doc id=node原理与解析 / dirName=node / frontmatterSlug=undefined => bad result slug=/node/node原理与解析 |
Hi @banli17 Can you open another issue for that? I don't know much about chars like 原理与解析, are theese valid pathname characters? What do you expect the slug to be according to this id/filename? As an escape hatch you can write your own slug with the slug frontmatter |
Note @banli17 this PR is not yet released. Please tell me if the upcoming release does not fix your issue, but I think it will. Probably releasing next week |
There is a bug when I use character # |
Motivation
Fixes #3223
Test Plan
tests