fix mixing forward slash on transistionTo

This commit is contained in:
Berkeley Martinez
2015-07-15 21:00:51 -07:00
parent caaa21d367
commit 04a5a081b3
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export default contain(
handleFinish() { handleFinish() {
debug('loading questions'); debug('loading questions');
const { dashedName } = this.props.params; const { dashedName } = this.props.params;
this.transitionTo(`hikes/${dashedName}/questions/1`); this.transitionTo(`/hikes/${dashedName}/questions/1`);
}, },
render() { render() {

View File

@ -32,7 +32,7 @@ export default function reactSubRouter(app) {
// if react-router does not find a route send down the chain // if react-router does not find a route send down the chain
.filter(function({ initialState }) { .filter(function({ initialState }) {
if (!initialState) { if (!initialState) {
debug('tried to find %s but got 404', location.pathname); debug('react tried to find %s but got 404', location.pathname);
return next(); return next();
} }
return !!initialState; return !!initialState;