Replies: 1 comment 1 reply
-
You should know that your file will be outputed as But, we have no garentee that all providers (or all hosters) are redirecting While But, if you do want all pages do not have You can use clientAppEnhance to config router to preform a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This question has been tackled by a couple people VuePress 1.x, but I just wanted check with the community to see if there's been any new progress.
Currently, VuePress generates routes that end in ".html". Is it possible to get rid of this programmatically, without having to restructure folder layout?
The most well-known workaround is to rename all Markdown pages to "index.md" and move them into a folder with the URL you want.
Example & Workaround:
src/title.md
creates a page atlocalhost:8080/title.html
src/title/index.md
creates a page atlocalhost:8080/title/
This creates substantial friction and clutters up the project structure.
Potential Hints for a Solution
localhost:8080/title
does work. It just reroutes tolocalhost:8080/title.html
.router
inclientAppEnhance
? (clientAppEnhancedocs)It feels like it this is a valuable feature for the VuePress community, just because it seems to be the obvious preference for most users. Like I mentioned, there were solutions for this before, but I don't see anything for the new VuePress 2.x. Has anybody found anything on this?
Beta Was this translation helpful? Give feedback.
All reactions