Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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