]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix notification back button stacking history
authorAfreen Misbah <afreen@ibm.com>
Wed, 22 Jul 2026 13:01:33 +0000 (18:31 +0530)
committerAfreen Misbah <afreen@ibm.com>
Wed, 22 Jul 2026 13:01:33 +0000 (18:31 +0530)
Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.ts

index d27ee54ddb8354e770abecb78a8b3bb01bf1dd81..4f12e43aa1de736caf64c94194ecdb32c5a1b19a 100644 (file)
@@ -98,8 +98,10 @@ export class NotificationAreaComponent implements OnInit, OnDestroy {
 
   navigateToNotification(notification: CdNotification) {
     this.notificationService.togglePanel(false);
+    const isAlreadyOnPage = this.router.url.startsWith('/notifications');
     this.router.navigate(['/notifications'], {
-      queryParams: { id: notification.id }
+      queryParams: { id: notification.id },
+      replaceUrl: isAlreadyOnPage
     });
   }