mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-30 18:15:52 +01:00
fix navLink Highlighting for sourceext
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user