Router back function not working. #67109
Unanswered
nicocarballo21
asked this question in
Help
Replies: 2 comments
-
I got same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 Temporarily, here's a dumb way to get around this
Hope the vercel team will fix this issue soon |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Its pretty simple, i have a list of tokens where each token has a Link from
next/Link
that redirect the user to /token/:tokenId.On that /token/:tokenId page, there is a button that executes
router.back()
fromuseRouter()
fromnext/router
The problem with this is:
url
on the browser change to/
which is correct, but the page dont make a render again and it gets stuck on the dynamic page instead go back to the home page.CC: This happens the first time, once you start browsing the site, for some reason it resolves itself.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions