Skip to content

[fresh@2.0] _error.tsx and _404.tsx bypass middlewares defined in _middleware.tsx #2843

@dahlia

Description

@dahlia

I'm using Fresh v2.0.0-alpha.29, and when a request is handled by _error.tsx and _404.tsx, middlewares defined in _middleware.tsx seem ignored.

Personal context

I use middlewares in order to initialize i18n stuffs, and I want to localize messages in 404/500 error pages, but currently they are not localized… So IMHO this is an unexpected behavior!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions