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
Issue with the newest router #95
Comments
Addtional info: I tested , and issue will hapens when using 3.4.9, while disapear with 3.4.5 So these updates about path and query encode/decode is effecting this plugin.
I think a possible fix is to encode all the classifierr key before generating related routes. |
Thanks for the report and detailed information. |
Any update with this? @billyyyyy3320 This bug can be considered as a critical one, because we cannot visit path like After half a year, do you still have plans to fix it? Or shall I publish a fixed version under my namespace? ( I hate duplicated versions of something) |
Bug report
The newest
vue-router
triggers an warning when navigating to routes with special charaters.And it's common for Chinese. Japanese or other users to use their language in tags and categories.
E.g.:
And this plugin is generating links like
/tag/笔记/
now, so issues will be shown in dev mode.This issue is not an actual issue in the past few months before I run
yarn upgrade
and updated my deps to newest (3.4.9).With the newest deps, links like
/tag/使用指南/
can be visited through other pages, but will break when visiting directly.Reproduce:
If you visite https://vuepress-theme-demo.mrhope.site/ and press the
使用指南
here, everything is prefectBut if you visit https://vuepress-theme-demo.mrhope.site/tag/使用指南/ directly, you will get a 404.
Besides if you disable javascript, you can find out that layout is rendered correctly by SSR, and client-side hydration leads to the 404 pages:
Other relevant information
npx vuepress info
:Config:
The text was updated successfully, but these errors were encountered: