From: Stas Vilchik Date: Tue, 18 Jul 2017 08:06:42 +0000 (+0200) Subject: redirect /view to /portfolio X-Git-Tag: 6.6-RC1~790 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1cbd06a5264b83da40e6d4a41e31762e5835feb6;p=sonarqube.git redirect /view to /portfolio --- 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 } }); }