fix navLink Highlighting for sourceext

This commit is contained in:
Eduard Heimbuch
2019-11-01 09:40:20 +01:00
parent 5a9cbbc073
commit 33cce15e33

View File

@@ -70,7 +70,7 @@ class RepositoryRoot extends React.Component<Props> {
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);
};