@csmart/ngc-smart-core 1.14.17 → 1.14.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1400,9 +1400,10 @@ class SmartOffenderRedirectGuard {
1400
1400
  this.router = router;
1401
1401
  }
1402
1402
  canActivate(route, state) {
1403
- const targetRoute = route.queryParams['redirectTo'];
1403
+ const targetRoute = route.data['routeTo'];
1404
+ const queryParams = route.parent?.queryParams;
1404
1405
  if (targetRoute) {
1405
- this.router.navigate([targetRoute], { queryParams: route.queryParams });
1406
+ this.router.navigate([targetRoute], { queryParams: queryParams });
1406
1407
  return false;
1407
1408
  }
1408
1409
  return true;