]> source.dussan.org Git - sonarqube.git/commitdiff
redirect /view to /portfolio
authorStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 18 Jul 2017 08:06:42 +0000 (10:06 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 31 Jul 2017 09:27:51 +0000 (11:27 +0200)
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMenu.js
server/sonar-web/src/main/js/app/utils/startReactApp.js
server/sonar-web/src/main/js/apps/overview/components/App.js

index b77945b4d4745552120733b8a9bcda6056fa5fe8..e7f2ca6d46304d01d0b7d684a8dc40ce7bb59bd9 100644 (file)
@@ -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 (
       <li>
         <Link to={{ pathname, query: { id: this.props.component.key } }} activeClassName="active">
index 41779d0b4ab6015860b9cc20be322ff4e456dde7..cda4a172b5e3c8514c54e72afa6ac6b9d50815ca 100644 (file)
@@ -118,7 +118,9 @@ const startReactApp = () => {
         <Redirect from="/component/index" to="/component" />
         <Redirect from="/component_issues" to="/project/issues" />
         <Redirect from="/dashboard/index" to="/dashboard" />
-        <Redirect from="/governance" to="/view" />
+        <Redirect from="/governance" to="/portfolio" />
+        <Redirect from="/view" to="/portfolio" />
+        <Redirect from="/extension/governance/governance" to="/portfolio" />
         <Redirect from="/extension/governance/portfolios" to="/portfolios" />
         <Redirect from="/profiles/index" to="/profiles" />
         <Redirect from="/quality_gates/index" to="/quality_gates" />
@@ -179,7 +181,6 @@ const startReactApp = () => {
                           component={ProjectAdminPageExtension}
                         />
                       </Route>
-                      <Redirect from="extension/governance/governance" to="/view" />
                       <Route
                         path="extension/:pluginKey/:extensionKey"
                         component={ProjectPageExtension}
@@ -190,7 +191,7 @@ const startReactApp = () => {
                       {projectAdminRoutes}
                     </Route>
                     <Route path="project_roles" childRoutes={projectPermissionsRoutes} />
-                    <Route path="view" component={ViewDashboard} />
+                    <Route path="portfolio" component={ViewDashboard} />
                   </Route>
 
                   <Route component={AdminContainer}>
index a0aafc4c938165a64e1ec49a9137a4f0c97321e4..247a4d8170417535d0f4eda4858a49012d53f6e5 100644 (file)
@@ -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 }
       });
     }