I have Googled myself blind without success.
In a React Router environment, I'm trying to switch to a new view page (i.e. client-side) when the user clicks a button.
I am able to use history.pushState() to put the proper URL into the browser's navbar, but I can't figure out how to then make it go to that URL. Immediately hitting the refresh button does just what I want, but of course that's not really a solution.
So near and yet so far. I hope there's a way to do this?
Here's the history push line:
history.pushState('/slides/' + 'path to an imageset')
Router config:
ReactDOM.render((
  <Router history={ browserHistory }>
    <Route path="/" component={ osconSPA } history={ browserHistory }>
      <IndexRoute name="home" component={ Home }/>
      <Route path="browse" component= { Browse }/>
      <Route path="zoomer" component= { Zoom }/>
      <Route path="zoomer/:imageId" component={ Zoom }/>
      <Route path="upload" component={ Upload }/>
      <Route path="slides" component={ SlideShow } />
      <Route path="slides/:viewSet" component={ SlideShow } />
    <Route path="*" component={ Home }/>
  </Route>
</Router>
), document.getElementById("main"))
 
    