diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js b/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js index d00979a8431..b71ded90831 100644 --- a/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js +++ b/server/sonar-web/src/main/js/apps/organizations/navigation/OrganizationNavigation.js @@ -135,10 +135,13 @@ export default class OrganizationNavigation extends React.PureComponent { location.pathname === `organizations/${organization.key}/projects` || location.pathname === `organizations/${organization.key}/projects/favorite`; - const adminActive = ADMIN_PATHS.some(path => + const adminPathsWithExtensions = (organization.adminPages || []) + .map(e => `extension/${e.key}`) + .concat(ADMIN_PATHS); + + const adminActive = adminPathsWithExtensions.some(path => location.pathname.endsWith(`organizations/${organization.key}/${path}`) ); - const moreActive = !adminActive && location.pathname.includes('/extension/'); return ( |