Rewrites + Link doesn't redirect at client-side #11687
Answered
by
timneutkens
franklinjavier
asked this question in
Help
-
Our application renders a tracking page at two URLs When I submit this form https://meurastreio.blzlocal.com.br, I'm trying to redirect (client side) but it doesn't work. Rewrites config const nextConfig = {
experimental: {
async rewrites() {
return [{ source: '/:id([0-9]+)', destination: '/tracking/:id' }]
},
}
} <form
onSubmit={e => {
e.preventDefault()
setLoading(true)
Router.push('/[id]', `/${orderNumber}`)
}}
> I tried Could anyone help? |
Beta Was this translation helpful? Give feedback.
Answered by
timneutkens
Apr 6, 2020
Replies: 1 comment 2 replies
-
This is expected as per the RFC #9081 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Timer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is expected as per the RFC #9081