impaktapps-ui-builder 0.0.101-alpha.343 → 0.0.101-alpha.345
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.
package/package.json
CHANGED
|
@@ -107,11 +107,11 @@ export default (funcParams: funcParamsProps) => {
|
|
|
107
107
|
const programId = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.value || "programID";
|
|
108
108
|
const programName = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")?.label || "";
|
|
109
109
|
// if (config?.programIdRequired && programId) {
|
|
110
|
-
if (pathParts.length
|
|
110
|
+
if (pathParts.length > 2) {
|
|
111
111
|
// funcParams.store.navigate(
|
|
112
112
|
// `${programId}/${funcParams.store.location.pathname}`
|
|
113
113
|
// );
|
|
114
|
-
if(pathParts[2] !== programName+""){
|
|
114
|
+
if(decodeURIComponent(pathParts[2]) !== programName+""){
|
|
115
115
|
pathParts[2] = programName;
|
|
116
116
|
const newPath = pathParts.slice(0, 3).join("/");
|
|
117
117
|
funcParams.store.navigate(newPath);
|