denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.25k stars 627 forks source link

Bug: `_middleware.tsx` doesn't run before `_500.tsx` or `_error.tsx` #2573

Open marvinhagemeister opened 3 months ago

NanoEdit commented 1 month ago

After #2598 _middleware.ts runs in subfolders but not on the root folder

For example routes folder structure:

Then at /category/foo middleware runs at /foo it doesn't

BTW _layout is fixed correctly in #2598, but _middleware doesn't