fix mixing forward slash on transistionTo
This commit is contained in:
@ -41,7 +41,7 @@ export default contain(
|
||||
handleFinish() {
|
||||
debug('loading questions');
|
||||
const { dashedName } = this.props.params;
|
||||
this.transitionTo(`hikes/${dashedName}/questions/1`);
|
||||
this.transitionTo(`/hikes/${dashedName}/questions/1`);
|
||||
},
|
||||
|
||||
render() {
|
||||
|
@ -32,7 +32,7 @@ export default function reactSubRouter(app) {
|
||||
// if react-router does not find a route send down the chain
|
||||
.filter(function({ 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 !!initialState;
|
||||
|
Reference in New Issue
Block a user