From 1cbd06a5264b83da40e6d4a41e31762e5835feb6 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 18 Jul 2017 10:06:42 +0200 Subject: [PATCH] redirect /view to /portfolio --- .../js/app/components/nav/component/ComponentNavMenu.js | 2 +- server/sonar-web/src/main/js/app/utils/startReactApp.js | 7 ++++--- .../sonar-web/src/main/js/apps/overview/components/App.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js index b77945b4d47..e7f2ca6d463 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js @@ -58,7 +58,7 @@ export default class ComponentNavMenu extends React.PureComponent { } renderDashboardLink() { - const pathname = this.isView() ? '/view' : '/dashboard'; + const pathname = this.isView() ? '/portfolio' : '/dashboard'; return (
  • diff --git a/server/sonar-web/src/main/js/app/utils/startReactApp.js b/server/sonar-web/src/main/js/app/utils/startReactApp.js index 41779d0b4ab..cda4a172b5e 100644 --- a/server/sonar-web/src/main/js/app/utils/startReactApp.js +++ b/server/sonar-web/src/main/js/app/utils/startReactApp.js @@ -118,7 +118,9 @@ const startReactApp = () => { - + + + @@ -179,7 +181,6 @@ const startReactApp = () => { component={ProjectAdminPageExtension} /> - { {projectAdminRoutes} - + diff --git a/server/sonar-web/src/main/js/apps/overview/components/App.js b/server/sonar-web/src/main/js/apps/overview/components/App.js index a0aafc4c938..247a4d81704 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/App.js +++ b/server/sonar-web/src/main/js/apps/overview/components/App.js @@ -42,7 +42,7 @@ class App extends React.PureComponent { componentDidMount() { if (['VW', 'SVW'].includes(this.props.component.qualifier)) { this.props.router.replace({ - pathname: '/view', + pathname: '/portfolio', query: { id: this.props.component.key } }); } -- 2.39.5