Skip to content

Issue with full roundtrip when navigating to / while using base path and middlewares

License

Notifications You must be signed in to change notification settings

jpb06/next-repro-404-index.json

Repository files navigation

nextjs repro - basePath + middleware + pages routes = full roundtrip

Hello.

Here is a repro about an issue we are experiencing with pages router. Conditions are the following:

  • Using a basePath.
  • Using middleware.
  • Using pages router.
  • Index page using getServerSideProps.

Symptoms

oh no

  • Client navigation from / -> /yolo = OK.
  • Client navigation from /yolo -> / = Full roundtrip. We appear to have a 404 on getting index.json, as shown in the recording, even though the file exists.

About

Issue with full roundtrip when navigating to / while using base path and middlewares

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published