]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8700 Missing redirect of codingrules to coding_rules
authorStas Vilchik <vilchiks@gmail.com>
Wed, 25 Jan 2017 08:53:39 +0000 (09:53 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 25 Jan 2017 08:53:52 +0000 (09:53 +0100)
server/sonar-web/src/main/js/app/utils/startReactApp.js

index ae1411b264397e90109dd8da455934c3d4f3b03b..e966592aa3afe8031b2e30435ab0de956a5114b4 100644 (file)
@@ -101,6 +101,9 @@ const startReactApp = () => {
                 <Route component={GlobalContainer}>
                   <Route path="about">{aboutRoutes}</Route>
                   <Route path="account">{accountRoutes}</Route>
+                  <Route path="codingrules" onEnter={(nextState, replace) => {
+                    replace('/coding_rules' + window.location.hash);
+                  }}/>
                   <Route path="coding_rules">{codingRulesRoutes}</Route>
                   <Route path="component">{componentRoutes}</Route>
                   <Route path="extension/:pluginKey/:extensionKey" component={GlobalPageExtension}/>