-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Description
Version
4.1.1
Test Case
https://reacttraining.com/react-router/web/example/basic
Steps to reproduce
Click on the "About" link several times, the the previous button
Expected Behavior
If the Link's to param is the current history location pathname, don't push it to the history, so if the user clicks the back button, it actually goes back to the previous component, not the current one again.
Actual Behavior
The history object keeps pushing the same url over and over, so if you click the previous button the same component is rendered again. I understand that there could be some other params on the url, so the question also would be, is there too much code and performance overhead on adding a regex check in order to see if the url location is the same and use the rest of the params for the intend purposes?
vladshcherbin
Metadata
Metadata
Assignees
Labels
No labels