-
Notifications
You must be signed in to change notification settings - Fork 27.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error occurred when using dynamic routing and Rewrite together #26074
Comments
I will like to work on this. |
This is what I did to solve the error: |
Thanks for the quick response! The point is to rewrite the url, we want to have access with /foo. |
ok, I get you, I really do not understand your project 100% and why you have those dynamic paths [folder]. What I did now was to take out the foo.js and put in the page folder and then it works. Again, this might not be what you want to achieve as I really do not have more information about the project. Another way to do that is : export default function IndexPage() { Foo ); } That will disable the backward and forward button. Then you can add a button to go back; which will lead directly to the home page. |
Thank you. |
Will this fix land in Next 11 or a minor version of 10? |
It's working correctly in Next 11 |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
10.2.3
What version of Node.js are you using?
14.16.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start
Describe the Bug
I'm using rewrites to access a page with dynamic routing, using the Link component.
It is possible to go to the target page with a click. However, when I go back or forward in the browser, an following error occurs.
This error does not occur until 10.2.0, and is seen in 10.2.1 and later versions.
Expected Behavior
?
To Reproduce
I wrote the following sample code in code sandbox.
Please try the following steps for each.
The text was updated successfully, but these errors were encountered: