Skip to content

Commit

Permalink
fix: fix browser behaviour and route extras
Browse files Browse the repository at this point in the history
  • Loading branch information
klaascuvelier committed Jun 7, 2024
1 parent 51098fe commit 7085c56
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/ui-shell/sidenav/sidenav-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ import { Router } from "@angular/router";
<ng-template #sidenavItemRouterTpl>
<a
[attr.title]="title ? title : null"
[routerLink]="route"
[relativeTo]="routeExtras?.relativeTo"
[queryParams]="routeExtras?.queryParams"
[fragment]="routeExtras?.fragment"
[queryParamsHandling]="routeExtras?.queryParamsHandling"
[preserveFragment]="routeExtras?.preserveFragment"
[skipLocationChange]="routeExtras?.skipLocationChange"
[replaceUrl]="routeExtras?.replaceUrl"
[state]="routeExtras?.state"
[info]="routeExtras?.info"
routerLinkActive="cds--side-nav__item--active"
(click)="navigate($event)"
ariaCurrentWhenActive="page"
[attr.title]="title ? title : null"
class="cds--side-nav__link">
<ng-template [ngTemplateOutlet]="sidenavItemContentTpl"></ng-template>
</a>
Expand Down

0 comments on commit 7085c56

Please sign in to comment.