]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9608 Fix redirection when there is no view specified in the old url
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 10 Aug 2017 12:02:13 +0000 (14:02 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 14 Aug 2017 09:44:44 +0000 (11:44 +0200)
server/sonar-web/src/main/js/apps/component-measures/routes.js

index ae5557a77ef967a5a59c302fa6cb9a679fa22f02..c0abc9f57d8d1c136802cbe37bff7ce1a0ec992e 100644 (file)
@@ -36,7 +36,7 @@ const routes = [
     }
   },
   {
-    path: 'metric/:metricKey/:view',
+    path: 'metric/:metricKey(/:view)',
     onEnter(nextState, replace) {
       if (nextState.params.view === 'history') {
         replace({