Passing args in URL with `experimental.basePath` causes the page to constantly being reloaded.
See original GitHub issueBug report
Describe the bug
We are using next: “^9.4.1” in a project with experimental.basePath
and when working with the project on development and we have params on URL the page constantly reloads making impossible to work on dev mode.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
I generated a simple repo & code-sandbox to show the problem.
- Contains a basepath set to
myPath
- Only contains a simple
index
page with a link to add params to the URL,
When you load the visit the project with params: Live Sandbox and click on the link, o directly go to the URL with params on the URL
The page loads correctly, but after a second it starts to reload from time to time.
If no params in the URL or experimental.basePath
set, it works like as expected.
Expected behavior
I would like to work with experimental.basePath
without unexpected page reloads.
Additional context
Obviously this is an experimental feature based on this PR but we will need sooner than later in our projects.
Thanks in advance 🙏
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (4 by maintainers)
Top GitHub Comments
I’m having the same issue without setting assetPrefix. I’m trying to narrow down the problem.
Yeah, but in our real case, we are routing this next.js application through
Traefik
through the samebase_path
, and we need both the app and the assets to be served inside the same base_path. That’s why we need to change both.