fix mixing forward slash on transistionTo
This commit is contained in:
@ -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() {
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user