Skip to content

Middleware should not add trailing slashes to non-data requests in static dir #2466

Open
@serhalp

Description

@serhalp

In sites with trailing slashes enabled, requests should not add a trailing slash when they're for non-data static files.

Data

The following is parsed automatically by the Next.js repo e2e test report generator.

test case: https://github.com/vercel/next.js/blob/canary/test/e2e/middleware-trailing-slash/test/index.test.ts#L436-L437
test: test/e2e/middleware-trailing-slash/test/index.test.ts
reason: Middleware should not add trailing slashes to non-data requests in static dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions