Skip to content

Commit c171b25

Browse files
author
Marius Stalder
committed
hotfix: notification link is not mappable to routerlink because of queryparam -> fix routerlink
1 parent 361aa76 commit c171b25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/core/header/navigation/notification/notification.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ <h2 mat-dialog-title><span class="underline">Notifications</span></h2>
4646
<th mat-header-cell *matHeaderCellDef>Link</th>
4747
<td mat-cell *matCellDef="let element">
4848
<div class="dialog-container__link">
49-
<a mat-icon-button *ngIf="element.link" [routerLink]="element.link"
49+
<a mat-icon-button *ngIf="element.link"
50+
[routerLink]="element.link.split('?')[0]"
51+
[queryParams]="{highlight: element.link.split('?')[1].split('=')[1]}"
5052
tabindex="-1" (click)="markAsRead(element)" matDialogClose>
5153
<mat-icon>arrow_forward</mat-icon>
5254
</a>

0 commit comments

Comments
 (0)