Unable to find custom 404 page with trailing slash #7616
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: error pages
Related to 404 and 500 handling (scope)
What version of
astro
are you using?v2.8.0
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
When output: "hybrid", accessing a non-existent page, the custom 404 page cannot be found.
Automatically add '/' after the URL
Step:
1.npm run build
2.HOST=0.0.0.0 PORT=3000 node dist/server/entry.mjs
3.localhost:3000/en/test/asd
4.Custom 404 page not found
What's the expected result?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-nhc9gb-malcwc?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: