Skip to content

Commit 33a872d

Browse files
MeAkibcrisbeto
authored andcommitted
fix(docs-infra): update guide navigation to remain active with query params
The navigation list component was using `routerLinkActive` with `{ exact: true }`, which required an exact URL match including query parameters. When visiting `/update-guide?v=19.0-20.0&l=1`, the link `/update-guide` didn't match, so the active class wasn't applied. Updated `routerLinkActiveOptions` to ignore query parameters while maintaining exact path matching so the navigation item stays highlighted when interacting with the update guide form.
1 parent a253739 commit 33a872d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adev/shared-docs/components/navigation-list/navigation-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<a
4040
[routerLink]="'/' + item.path"
4141
routerLinkActive="docs-faceted-list-item-active"
42-
[routerLinkActiveOptions]="{ exact: true }"
42+
[routerLinkActiveOptions]="{ paths: 'exact', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored' }"
4343
(click)="emitClickOnLink()"
4444
[matTooltip]="item.label"
4545
[matTooltipDisabled]="itemLabel.length < 27"

0 commit comments

Comments
 (0)