Browse Source

fixed routes for dashboard

Skylsmoi 6 years ago
parent
commit
76b049459d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/container/Tracim.jsx
  2. 1 1
      src/helper.js

+ 1 - 1
src/container/Tracim.jsx View File

@@ -61,7 +61,7 @@ class Tracim extends React.Component {
61 61
               {/* bellow, the '?' is important, it avoid to have to declare another route for CONTENT_LIST which could double match */}
62 62
               <PrivateRoute path={PAGE.WORKSPACE.CONTENT(':idws', ':idcts?')} component={WorkspaceContent} />
63 63
               <PrivateRoute path={PAGE.ACCOUNT} component={Account} />
64
-              <PrivateRoute path={PAGE.WORKSPACE.DASHBOARD()} component={Dashboard} />
64
+              <PrivateRoute exact path={PAGE.WORKSPACE.DASHBOARD()} component={Dashboard} />
65 65
               <PrivateRoute path={'/wip/:cp'} component={WIPcomponent} /> {/* for testing purpose only */}
66 66
 
67 67
               <Footer />

+ 1 - 1
src/helper.js View File

@@ -10,7 +10,7 @@ export const FETCH_CONFIG = {
10 10
 export const PAGE = {
11 11
   HOME: '/',
12 12
   WORKSPACE: {
13
-    DASHBOARD: (idws = 'idws') => `/workspace/${idws}`,
13
+    DASHBOARD: (idws = ':idws') => `/workspace/${idws}`,
14 14
     NEW: '/workspace/new',
15 15
     CALENDAR: (idws = ':idws') => `/workspace/${idws}/apps/calendar`,
16 16
     CONTENT_LIST: (idws = ':idws') => `/workspace/${idws}/apps/contents`,