Using the experimental basePath feature causes a refresh while navigating with <Link />
Steps to reproduce the behavior, please provide code snippets or a repository:
git clone [email protected]:lucas-janon/base-path-bug.gitNavigate to /test-bI expect the page not to be refreshed since it gets annoying to navigate multiple routes in development
This is another repo that has the same issue when running yarn dev.
But in both examples, when running the production build with yarn next build and yarn next start, the refresh after navigating to a page using the Link component is gone.
Both of those reproductions are using Next.js 9.4.4. Please upgrade to the latest canary before trying any experimental features.
Confirmed this works fine on canary. Also, you shouldn't be defining both assetPrefix and basePath. Only basePath is required for your setup.
Most helpful comment
Confirmed this works fine on canary. Also, you shouldn't be defining both
assetPrefixandbasePath. OnlybasePathis required for your setup.