Astro info
Astro version v2.10.14
Package manager npm
Platform linux
Architecture x64
Adapter Couldn't determine.
Integrations @astrojs/mdx, @astrojs/sitemap
What browser are you using?
Firefox, Chrome
Describe the Bug
This is the same issue in #7752, released in #7851 #7854, but the issue isn't fixed.
I am trying to redirect / (which does not exist) to the localized content (/en or /zh etc), but Astro returns 404 instead of running the middleware.
The bug is reproduced at the link below.
What's the expected result?
Middleware should run before Astro returns 404.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-stgbcz?file=src%2Fmiddleware.js
Participation
Astro info
What browser are you using?
Firefox, Chrome
Describe the Bug
This is the same issue in #7752, released in #7851 #7854, but the issue isn't fixed.
I am trying to redirect
/(which does not exist) to the localized content (/enor/zhetc), but Astro returns 404 instead of running the middleware.The bug is reproduced at the link below.
What's the expected result?
Middleware should run before Astro returns 404.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-stgbcz?file=src%2Fmiddleware.js
Participation