From 92b37feca4f5b5dc60b7ae89c004aded692e8701 Mon Sep 17 00:00:00 2001 From: Jason Robbins Date: Fri, 27 Sep 2024 18:38:05 +0000 Subject: [PATCH] Only highlight main nav items on exact match. (#4401) --- client-src/elements/chromedash-drawer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-src/elements/chromedash-drawer.ts b/client-src/elements/chromedash-drawer.ts index cbbee50ced55..2506d1c60134 100644 --- a/client-src/elements/chromedash-drawer.ts +++ b/client-src/elements/chromedash-drawer.ts @@ -231,7 +231,7 @@ export class ChromedashDrawer extends LitElement { } isCurrentPage(href) { - return this.currentPage.startsWith(href); + return this.currentPage === href; } toggleDrawerActions() {