diff --git a/scm-ui/src/repos/containers/RepositoryRoot.js b/scm-ui/src/repos/containers/RepositoryRoot.js index e8c9681caf..b4a54ad168 100644 --- a/scm-ui/src/repos/containers/RepositoryRoot.js +++ b/scm-ui/src/repos/containers/RepositoryRoot.js @@ -71,6 +71,11 @@ class RepositoryRoot extends React.Component { this.props.deleteRepo(repository, this.deleted); }; + matchChangeset = (route: any) => { + const url = this.matchedUrl(); + return route.location.pathname.match(`${url}/changeset/`); + }; + render() { const { loading, error, repository, t } = this.props; @@ -127,6 +132,7 @@ class RepositoryRoot extends React.Component { activeOnlyWhenExact={false} to={`${url}/history`} label={t("repository-root.history")} + otherLocation={this.matchChangeset} />