-
Notifications
You must be signed in to change notification settings - Fork 923
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
[Bug report] add extra pages seems to have no effect #1548
Comments
/hello.html |
It works for extra page, thank you. |
common usage (
|
Again, |
cc @meteorlxy Maybe we should add extra check with a clean URL edition when the original route path not found. |
Description
use extra page or client config to define a route not working
use extra pages
https://v2.vuepress.vuejs.org/advanced/cookbook/adding-extra-pages.html
use plugin api to create a extra page
/hello
, and it's not found when in dev and productionhelloPlugins.ts
register in
config.ts
A /hello route is expected, but it is 404 link
reproduction repo repo
use vue-router
https://v2.vuepress.vuejs.org/advanced/cookbook/usage-of-client-config.html
use client config to add a route
this
client.ts
fileHello.vue
additional info
I see the
.vuepress/.temp/pages
folder has ahello.html.vue
file, it's content is very well ,while in/hello
route ,it's not found.I remembered when vuepress was beta ,the second solution works well.
Reproduction
https://github.com/yzqbugs/vuepress-bugs
Used Package Manager
yarn
System Info
The text was updated successfully, but these errors were encountered: