Open braden-w opened 4 months ago
I assigned the issue to you @braden-w
We should apply the same fix for 505 pages:
thank you @agrofx1 for the help
@braden-w any updates?
@ematipico Just attempted my first PR at #12182 ! Let me know if it looks good. Thanks for the reminder
@braden-w Your PR looks good to me after a cursory glance through it.
On a related note, do you happen to know what mechanism within the codebase is responsible for changing the output file paths from /404/index.html
and /500/index.html
to 404.html
and 500.html
respectively? That is, where is the specific exception code to treat these pages different from all other pages when deciding where to output the rendered files?
I've been trying to find a way to output these pages the way any other page is output, preferably with a configuration option for people who want their 404 and 500 pages to be at /404/
and /500/
, respectively.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In dynamic routes, any dynamic route that starts with "404", even if it is not an exact match like "4045", results in a 404 page.
If there is a
/pages/todos/[id].astro
file, visiting/todos/4045
,/todos/404a
, etc. gives 404 pages such as the following:What's the expected result?
If there is a
/pages/todos/[id].astro
file, visiting/todos/4045
,/todos/404a
, etc. should instead meet pass "4045" or "404a" as a param and load the corresponding todo.Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics?file=src%2Fpages%2Findex.astro
Participation