Closed JulioJu closed 3 years ago
The reason is your permalink does not end with '.html'
nor '/'
.
If you check the dist directory, there will be a file named test2
, which is expected to be test2.html
or test2/index.html
'.html'
, keep it as is.'/'
, add trailing 'index.html'
.'.html'
nor '/'
- we currently keep it as is, but I think we'd better add trailing '/index.html'
to avoid the mistake.
Bug report
Description
Define permalink into Markown as defined in dev mode or in prod mode https://vuepress2.netlify.app/reference/frontmatter.html#permalink or https://vuepress.vuejs.org/guide/permalinks.html#configure-permalinks is broken .
Steps to reproduce
Prepare
In Dev
yarn dev
Link to page "test2"
=> all work wellReload page
Ctrl + r
we have messageSame problem if we use direct link to http://localhost:8080/test2
In prod
yarn serve
Link to page "test2"
=> all work wellCtrl + r
=> Firefox ask if we want download the page
Same problem if we use direct link to http://localhost:8000/test2
Expected behavior
permalink
frontmatter should workEnvironment info
Browser: Mozilla Firefox 87.0
Output of
vuepress info
: