From 562710fd198777c99bbedaa0a8fe60a2dc8e4853 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 10 Aug 2017 14:02:13 +0200 Subject: [PATCH] SONAR-9608 Fix redirection when there is no view specified in the old url --- server/sonar-web/src/main/js/apps/component-measures/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({ -- 2.39.5