aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-03 15:40:52 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-03 16:40:34 +0100
commit802d9aeeed571983091e9ff2b10b90c4af313317 (patch)
tree6ecaf1ce092eb3250a42cdb62c43f93e06f50376 /server
parent80326a16d0579fc8e262fddba1f8398f3f4b6edf (diff)
downloadsonarqube-802d9aeeed571983091e9ff2b10b90c4af313317.tar.gz
sonarqube-802d9aeeed571983091e9ff2b10b90c4af313317.zip
make it possible to go back after opening code/projects page
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/code/actions/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/actions/index.js b/server/sonar-web/src/main/js/apps/code/actions/index.js
index e39f46d0327..a89e78786f5 100644
--- a/server/sonar-web/src/main/js/apps/code/actions/index.js
+++ b/server/sonar-web/src/main/js/apps/code/actions/index.js
@@ -18,7 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import _ from 'underscore';
-import { pushPath } from 'redux-simple-router';
+import { pushPath, replacePath } from 'redux-simple-router';
import { getChildren, getComponent, getTree, getBreadcrumbs } from '../../../api/components';
import { translate } from '../../../helpers/l10n';
@@ -183,6 +183,7 @@ export function initComponent (componentKey, breadcrumbs) {
dispatch(startFetching());
return getComponent(componentKey, METRICS_WITH_COVERAGE)
.then(component => dispatch(initComponentAction(component, breadcrumbs)))
+ .then(() => dispatch(replacePath(getPath(componentKey))))
.then(() => dispatch(stopFetching()));
};
}