Explorar el Código

fixed routes for dashboard

Skylsmoi hace 6 años
padre
commit
76b049459d
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/container/Tracim.jsx
  2. 1 1
      src/helper.js

+ 1 - 1
src/container/Tracim.jsx Ver fichero

@@ -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 Ver fichero

@@ -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`,