acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 200 forks source link

Is there any way to check if browser histories are in the same site? #213

Closed tyao1 closed 8 years ago

tyao1 commented 8 years ago

I'm working on a webapp using redux-router and SSR, and I have a back button that simply goBack() when clicked. It works fine if user visit my page at the root, but when a user visited directly by other links, the goBack() will not work. Is there any solutions to my problems? Thanks!

tyao1 commented 8 years ago

I solved it by adding a reducer to store the current location and last location and compare them.