diff --git a/scm-ui/src/repos/containers/RepositoryRoot.js b/scm-ui/src/repos/containers/RepositoryRoot.js index 2c7d8e8801..4e922d1d66 100644 --- a/scm-ui/src/repos/containers/RepositoryRoot.js +++ b/scm-ui/src/repos/containers/RepositoryRoot.js @@ -72,9 +72,7 @@ class RepositoryRoot extends React.Component { matches = (route: any) => { const url = this.matchedUrl(); - const regex = new RegExp( - `${url}(/branches)?/?[a-zA-Z0-9_%]*/changesets?.*` - ); + const regex = new RegExp(`${url}(/branches)?/?[^/]*/changesets?.*`); return route.location.pathname.match(regex); };