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:
parent
17fd470e6b
commit
a4e00ba89e
@ -58,7 +58,7 @@ let NavRoutesLinks = React.createClass({
|
||||
aclObject={this.props.userAcl}>
|
||||
<NavRoutesLinksLink
|
||||
headerTitle={headerTitle}
|
||||
routePath={path}
|
||||
routePath={'/' + path}
|
||||
depth={i}
|
||||
children={childrenFn}/>
|
||||
</AclProxy>
|
||||
@ -68,7 +68,7 @@ let NavRoutesLinks = React.createClass({
|
||||
<NavRoutesLinksLink
|
||||
key={j}
|
||||
headerTitle={headerTitle}
|
||||
routePath={path}
|
||||
routePath={'/' + path}
|
||||
depth={i}
|
||||
children={childrenFn}/>
|
||||
);
|
||||
|
@ -33,11 +33,11 @@ let baseUrl = AppConstants.baseUrl;
|
||||
const COMMON_ROUTES = (
|
||||
<Route path={baseUrl} component={App}>
|
||||
<IndexRoute component={PieceList} headerTitle="COLLECTION" />
|
||||
<Route path="register_piece" component={RegisterPiece} headerTitle="+ NEW WORK" />
|
||||
<Route path="collection" component={PieceList} headerTitle="COLLECTION" />
|
||||
<Route path="signup" component={SignupContainer} />
|
||||
<Route path="login" component={LoginContainer} />
|
||||
<Route path="logout" component={LogoutContainer} />
|
||||
<Route path="register_piece" component={RegisterPiece} headerTitle="+ NEW WORK" />
|
||||
<Route path="pieces/:pieceId" component={PieceContainer} />
|
||||
<Route path="editions/:editionId" component={EditionContainer} />
|
||||
<Route path="password_reset" component={PasswordResetContainer} />
|
||||
|
Loading…
Reference in New Issue
Block a user