nuxt / nuxt.com

The Nuxt website, made with Nuxt.
https://nuxt.com
MIT License
282 stars 138 forks source link

docs: `nuxt.com/docs/` broken/does not redirect to `nuxt.com/docs` #1534

Closed OrbisK closed 5 months ago

OrbisK commented 5 months ago

Environment

latest docs deployment

Reproduction

https://nuxt.com/docs/

https://github.com/nuxt/nuxt/blob/5dc96de8a928d10e90f47d9941ed7402328b1e3f/.github/ISSUE_TEMPLATE/config.yml#L4

Describe the bug

Opening /docs/ with trailing slash does result in 404, but ist not handled by vitepress. Might be a hosting issue (see: https://github.com/slorber/trailing-slash-guide). Temp. fixable by adjusting issue template.

Additional context

No response

Logs

No response

OrbisK commented 5 months ago

@Atinux i am not sure, but according to the trailing slash guide this should be possible via vercel:

Vercel cleanUrls=true trailingSlash=undefined

So this will be fixed for every route, not just docs/

atinux commented 5 months ago

Fixed for docs, we will soon change how we render the website to it won't be an issue anymore.

Thank you for reporting though ❤️