vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

部署成 ssr 之后访问 url 时可以设置大小写不敏感吗

Open mountain2016 opened this issue 2 years ago • 0 comments

本地启动项目时,可以执行到 https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/core/lib/client/app.js#L88 中的 handleRedirectForCleanUrls 方法,所以本地使用不论使用大写还是小写都可以访问到正确的页面

比如我有一个页面: https://xxx/tag/ABC/ 我使用 https://xxx/tag/abc/ 会正常返回 200 的状态码并跳转到正确的页面 但是在我部署到服务器上之后,使用 https://xxx/tag/abc/ 访问就会返回 404

不知道是否与 SSR 有关?有没有什么配置可以实现大小写不敏感

Other relevant information vuepress v1.9.8 使用 vercel 部署

mountain2016 avatar Sep 04 '23 07:09 mountain2016