diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/routes.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/routes.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/routes.js b/server/sonar-web/src/main/js/apps/overview/routes.js index 6fac11a62ab..c28123a7a38 100644 --- a/server/sonar-web/src/main/js/apps/overview/routes.js +++ b/server/sonar-web/src/main/js/apps/overview/routes.js @@ -18,11 +18,10 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; -import { IndexRoute, Route } from 'react-router'; +import { IndexRoute, Redirect } from 'react-router'; import AppContainer from './components/AppContainer'; export default [ - <IndexRoute key="index" component={AppContainer}/>, - <Route key="1" path="index" component={AppContainer}/>, - <Route key="2" path="index/:projectKey" component={AppContainer}/> + <Redirect key="redirect" from="/dashboard/index" to="/dashboard"/>, + <IndexRoute key="index" component={AppContainer}/> ]; |