[Bug]: Redirect not working in production build #10732
Replies: 3 comments 3 replies
-
HI for update I've change from BrowserRouter to Hashrouter and it's working. Then it is my short-term-solving |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you can provide a minimal reproduction of the broken scenario we can look into it |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same problem here, redirect not working.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of React Router are you using?
6.14.2
Vite 4.3.2
Steps to Reproduce
My app is using history version 5.3.0 and react-router-dom version 6.4.2.
Everything work good on development mode. But for production mode, all redirect not working.
I have try to chagne to older version but still get this issues.
Please could anyone can help me :(
Expected Behavior
redirect, history.push working
Actual Behavior
Prodcredirect, history not working in production mode
Beta Was this translation helpful? Give feedback.
All reactions