An open API service indexing awesome lists of open source software.

https://github.com/jpb06/next-repro-404-index.json

Issue with full roundtrip when navigating to / while using base path and middlewares
https://github.com/jpb06/next-repro-404-index.json

basepath next-js pages-router-nextjs reproduction

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](./assets/oh-no.gif)

- 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.