@lowcodeunit/applications-flow-common 1.36.121-krakyn-zoom → 1.36.124-integration

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.
@@ -506,6 +506,23 @@ class ProjectService {
506
506
  this.CreatingProject =
507
507
  Object.keys(state?.EaC?.Projects || {}).length <= 0;
508
508
  resolve(state.EaC);
509
+ this.activatedRoute.queryParams.subscribe((params) => {
510
+ if (params?.direct == 'true') {
511
+ let projKeys = Object.keys(state.EaC.Projects || {});
512
+ if (projKeys.length == 1) {
513
+ console.log('Directing to deeper link');
514
+ let appKeys = Object.keys(state.EaC.Applications || {});
515
+ if (appKeys.length == 1) {
516
+ let app = state.EaC.Applications[appKeys[0]];
517
+ let routeKey = encodeURIComponent(app.LookupConfig.PathRegex?.replace('.*', '') || '/');
518
+ window.location.href = `/dashboard/application/${appKeys[0]}/${routeKey}/${projKeys[0]}`;
519
+ }
520
+ else {
521
+ window.location.href = `/dashboard/project/${projKeys[0]}`;
522
+ }
523
+ }
524
+ }
525
+ });
509
526
  console.log(state);
510
527
  }, (err) => {
511
528
  state.Loading = false;