I'm trying to run a book example that features a movies store. I've got the page to pull up and look right. The trouble is, when I click on a movie image nothing happens (the react-router is supposed to show an info box about the selected movie). My start URL is: http://localhost/~johndoe/react-dir/test-webpack/
When I click on a movie image nothing happens and the address bar changes to: http://localhost/movies/1
The Chrome dev tools, console says: browser.js:49 Warning: [react-router] Location "/movies/1" did not match any routes
My routes.js file is:
const React = require('react');
const {Router, Route, IndexRoute, browserHistory} = require('react-router');
const App = require('components/app/app.js');
const Movies = require('components/movies/movies.js');
const Movie = require('components/movie/movie.js');
module.exports = (
<Router history={browserHistory}>
<Route path={"/~johndoe/react-dir/test-webpack/"} component={App}>
<IndexRoute component={Movies}/>
<Route path={"movies"} component={Movies}>
<Route path={":id"} component={Movie}/>
</Route>
</Route>
</Router>
);
Can anyone suggest what might be going wrong? I'm not sure what to look for to fix this. Any help would be appreciated.