Add redirects

This commit is contained in:
Berkeley Martinez
2015-10-19 22:51:30 -07:00
parent 8a02348ddb
commit c6c1d7dac4
5 changed files with 82 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ export default function reactSubRouter(app) {
// returns a router wrapped app
app$({ location })
// if react-router does not find a route send down the chain
.filter(function({ props}) {
.filter(function({ props, nextLocation }) {
console.log('foo', nextLocation);
if (!props) {
debug('react tried to find %s but got 404', location.pathname);
return next();