From 33cce15e33f0a2e342782ce13206f9f5512adc76 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 1 Nov 2019 09:40:20 +0100 Subject: [PATCH] fix navLink Highlighting for sourceext --- scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx b/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx index 1e2b94f828..d65f2c9892 100644 --- a/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/RepositoryRoot.tsx @@ -70,7 +70,7 @@ class RepositoryRoot extends React.Component { matchesSources = (route: any) => { const url = this.matchedUrl(); - const regex = new RegExp(`${url}/(sources|sourceext)/.*`); + const regex = new RegExp(`${url}(/sources|/sourceext)/.*`); return route.location.pathname.match(regex); };