I have a route /users and /users/:pageNumber that leads to the same component (A table of users).
When I navigate from /users to /users/3 using hashHistory.push('/users/3')
The component will not reload with adjusting to the new parameters, the router assumes I'm already in the right place...
How can I make the component reload with the new parameters?
Routes are defined as follows:
<Provider store={store}>
<Router history={hashHistory}>
<Route path="login" component={Login}/>
<Route path="/" component={MainContainer}>
<Route onEnter={validateToken} path="users" component={UsersManagement}/>
<Route onEnter={validateToken} path="users/:pageNumber" component={UsersManagement}/>
</Route>
</Router>
</Provider>