impaktapps-ui-builder 0.0.101-alpha.340 → 0.0.101-alpha.341

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.
@@ -10285,8 +10285,15 @@ var service = (funcParams) => {
10285
10285
  }));
10286
10286
  }
10287
10287
  const config2 = pageData == null ? void 0 : pageData.config;
10288
- funcParams.store.location.pathname.split("/");
10289
- ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10288
+ const pathParts = funcParams.store.location.pathname.split("/");
10289
+ const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10290
+ if (pathParts.length >= 2) {
10291
+ if (pathParts[2] !== programId + "") {
10292
+ pathParts[2] = programId;
10293
+ const newPath = pathParts.slice(0, 3).join("/");
10294
+ funcParams.store.navigate(newPath);
10295
+ }
10296
+ }
10290
10297
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10291
10298
  const event2 = new CustomEvent("pageNameChanged", {
10292
10299
  detail: { pageName: config2.label }