1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Fix dynamic routing for react-router-bootstrap

This commit is contained in:
Tim Daubenschütz 2015-10-01 14:16:20 +02:00
parent 17fd470e6b
commit a4e00ba89e
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ let NavRoutesLinks = React.createClass({
aclObject={this.props.userAcl}> aclObject={this.props.userAcl}>
<NavRoutesLinksLink <NavRoutesLinksLink
headerTitle={headerTitle} headerTitle={headerTitle}
routePath={path} routePath={'/' + path}
depth={i} depth={i}
children={childrenFn}/> children={childrenFn}/>
</AclProxy> </AclProxy>
@ -68,7 +68,7 @@ let NavRoutesLinks = React.createClass({
<NavRoutesLinksLink <NavRoutesLinksLink
key={j} key={j}
headerTitle={headerTitle} headerTitle={headerTitle}
routePath={path} routePath={'/' + path}
depth={i} depth={i}
children={childrenFn}/> children={childrenFn}/>
); );

View File

@ -33,11 +33,11 @@ let baseUrl = AppConstants.baseUrl;
const COMMON_ROUTES = ( const COMMON_ROUTES = (
<Route path={baseUrl} component={App}> <Route path={baseUrl} component={App}>
<IndexRoute component={PieceList} headerTitle="COLLECTION" /> <IndexRoute component={PieceList} headerTitle="COLLECTION" />
<Route path="register_piece" component={RegisterPiece} headerTitle="+ NEW WORK" />
<Route path="collection" component={PieceList} headerTitle="COLLECTION" /> <Route path="collection" component={PieceList} headerTitle="COLLECTION" />
<Route path="signup" component={SignupContainer} /> <Route path="signup" component={SignupContainer} />
<Route path="login" component={LoginContainer} /> <Route path="login" component={LoginContainer} />
<Route path="logout" component={LogoutContainer} /> <Route path="logout" component={LogoutContainer} />
<Route path="register_piece" component={RegisterPiece} headerTitle="+ NEW WORK" />
<Route path="pieces/:pieceId" component={PieceContainer} /> <Route path="pieces/:pieceId" component={PieceContainer} />
<Route path="editions/:editionId" component={EditionContainer} /> <Route path="editions/:editionId" component={EditionContainer} />
<Route path="password_reset" component={PasswordResetContainer} /> <Route path="password_reset" component={PasswordResetContainer} />