Skip to content

Commit 16bd55e

Browse files
committed
fix url to path
1 parent ef85742 commit 16bd55e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/layouts/AuthorizedLayout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const AuthorizedLayout = ({ match }) => (
88
<div className="app authorized-layout">
99
<AuthorizedPrimaryHeader />
1010
<Switch>
11-
<Route path={match.url} exact component={AccountSubLayout} />
12-
<Route path={`${match.url}/:projectId`} component={ProjectSubLayout} />
11+
<Route path={match.path} exact component={AccountSubLayout} />
12+
<Route path={`${match.path}/:projectId`} component={ProjectSubLayout} />
1313
</Switch>
1414
</div>
1515
)

src/layouts/ProjectSubLayout.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ const ProjectSubLayout = ({ match }) => {
3232
</nav>
3333
<main>
3434
<Switch>
35-
<Route path={`${match.url}/overview`} component={Overview} />
36-
<Route path={`${match.url}/authentication`} component={AuthenticationLayout} />
37-
<Route path={`${match.url}/database`} exact component={DatabaseHome} />
38-
<Route path={`${match.url}/database/:databaseType`} component={DatabaseLayout} />
39-
<Redirect to={`${match.url}/overview`} />
35+
<Route path={`${match.path}/overview`} component={Overview} />
36+
<Route path={`${match.path}/authentication`} component={AuthenticationLayout} />
37+
<Route path={`${match.path}/database`} exact component={DatabaseHome} />
38+
<Route path={`${match.path}/database/:databaseType`} component={DatabaseLayout} />
39+
<Redirect to={`${match.path}/overview`} />
4040
</Switch>
4141
</main>
4242
</div>

0 commit comments

Comments
 (0)