Issue: Route was being force-reloaded using a two-step navigation hack causing unnecessary redirects and side effects.
Fix: Replaced the hack with Angular’s native same-URL reload using onSameUrlNavigation: 'reload' for a clean, stable route refresh.
Fixes: https://tracker.ceph.com/issues/74008
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
this.refresh();
this.refreshTokenStatus();
this.summaryService.refresh();
- if (currentRoute.includes('dashboard')) {
- this.router.navigateByUrl('/pool', { skipLocationChange: true }).then(() => {
- this.router.navigate([currentRoute]);
- });
- } else {
- this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => {
- this.router.navigate([currentRoute]);
- });
- }
+ this.router.navigate([currentRoute], {
+ onSameUrlNavigation: 'reload',
+ skipLocationChange: false
+ });
}
}