From: Afreen Misbah Date: Wed, 22 Jul 2026 13:01:33 +0000 (+0530) Subject: mgr/dashboard: fix notification back button stacking history X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dd6849ee3b6c649e5b3b1edd8b2d801ae9393b5;p=ceph.git mgr/dashboard: fix notification back button stacking history Signed-off-by: Afreen Misbah --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.ts index d27ee54ddb83..4f12e43aa1de 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.ts @@ -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 }); }