I am trying to programmatically navigate using react-router and I can't seem to be able to do so.
I have read other related questions, such as this one that seems to work for everyone else, but to no avail.
I am using react-router version 2.4.1, and to my understanding it should be accomplished by:
this.context.router.push('/');
or even:
browserHistory = require('react-router').browserHistory;
//...
var browserHistory.push('/');
But with either approaces all I seem to accomplish is a URL rewrite, with no actual routing going on.
I do have a route registered for '/' on my router.
What am I missing? I am inches away from a window.location = '/'
on what is otherwise a Single Page Application :(