From 7777a99fe5d264f30e61dfdc7f41b10934f1e917 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 11 Oct 2018 08:22:47 +0100 Subject: [PATCH] fix(docs-infra): highlight current CLI command in navigation menu (#26388) Previously CLI was being treated like the API page, where the top level item had to be highlighted for any command page. But now the CLI commands all have their own navigation item, which can be selected, so there is no need to special case CLI paths any more. Closes #26373 PR Close #26388 --- aio/src/app/navigation/navigation.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/src/app/navigation/navigation.service.ts b/aio/src/app/navigation/navigation.service.ts index eaf2a710c7..ff08b2bf11 100644 --- a/aio/src/app/navigation/navigation.service.ts +++ b/aio/src/app/navigation/navigation.service.ts @@ -95,7 +95,7 @@ export class NavigationService { this.location.currentPath, (navMap, url) => { - const matchSpecialUrls = /^api|^cli/.exec(url); + const matchSpecialUrls = /^api/.exec(url); if (matchSpecialUrls) { url = matchSpecialUrls[0]; }