From: Grégoire Aubert Date: Thu, 10 Aug 2017 12:02:13 +0000 (+0200) Subject: SONAR-9608 Fix redirection when there is no view specified in the old url X-Git-Tag: 6.6-RC1~622 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=562710fd198777c99bbedaa0a8fe60a2dc8e4853;p=sonarqube.git SONAR-9608 Fix redirection when there is no view specified in the old url --- diff --git a/server/sonar-web/src/main/js/apps/component-measures/routes.js b/server/sonar-web/src/main/js/apps/component-measures/routes.js index ae5557a77ef..c0abc9f57d8 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/routes.js +++ b/server/sonar-web/src/main/js/apps/component-measures/routes.js @@ -36,7 +36,7 @@ const routes = [ } }, { - path: 'metric/:metricKey/:view', + path: 'metric/:metricKey(/:view)', onEnter(nextState, replace) { if (nextState.params.view === 'history') { replace({