Skip to content

Commit fa92c6b

Browse files
committed
Use routerLink for admin header to support middle-click navigation
Replace click event handler with routerLink directive to enable proper browser navigation behavior including middle-click to open in new tab
1 parent 5999ff5 commit fa92c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/admin-app/admin-app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
mode="side"
1111
[opened]="true"
1212
>
13-
<mat-toolbar class="sidenav-header" title="Exit Administration" (click)="goToHome()">
14-
<a class="nolink" (click)="goToHome()">
13+
<mat-toolbar class="sidenav-header" title="Exit Administration" [routerLink]="['/']">
14+
<a class="nolink" [routerLink]="['/']">
1515
<div class="cssLayoutRowStartCenter">
1616
<mat-icon class="icon-35px player-icon-header" svgIcon="ic_crucible_player"></mat-icon>
1717
<h2 class="icon-text">Administration</h2>

0 commit comments

Comments
 (0)