File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const AuthorizedLayout = ({ match }) => (
8
8
< div className = "app authorized-layout" >
9
9
< AuthorizedPrimaryHeader />
10
10
< 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 } />
13
13
</ Switch >
14
14
</ div >
15
15
)
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ const ProjectSubLayout = ({ match }) => {
32
32
</ nav >
33
33
< main >
34
34
< 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` } />
40
40
</ Switch >
41
41
</ main >
42
42
</ div >
You can’t perform that action at this time.
0 commit comments