geonetwork-ui 2.6.2-dev.8af43875f → 2.6.2
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/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +4 -3
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +2 -2
- package/fesm2022/geonetwork-ui.mjs +5 -4
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +5 -2
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-params.utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/router/src/lib/default/state/query-params.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAE9D,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"query-params.utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/router/src/lib/default/state/query-params.utils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAE9D,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,iBAAiB,CAwBnB"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,10 @@ export function flattenQueryParams(
|
|
|
14
14
|
Array.isArray(flattened[key]) &&
|
|
15
15
|
(flattened[key] as string[]).length > 0
|
|
16
16
|
) {
|
|
17
|
-
|
|
17
|
+
const encoded = (flattened[key] as string[]).map((value) =>
|
|
18
|
+
typeof value === 'string' ? value.replace(/,/g, '%2C') : value
|
|
19
|
+
)
|
|
20
|
+
flattened[key] = [encoded.join(',')]
|
|
18
21
|
} else if (isDateRange(flattened[key] as DateRange)) {
|
|
19
22
|
const start = (flattened[key] as DateRange).start
|
|
20
23
|
const end = (flattened[key] as DateRange).end
|
|
@@ -48,7 +51,7 @@ export function expandQueryParams(
|
|
|
48
51
|
...(end && { end: new Date(`${end}T00:00:00`) }),
|
|
49
52
|
}
|
|
50
53
|
} else {
|
|
51
|
-
expanded[key] = value.split(',')
|
|
54
|
+
expanded[key] = value.split(',').map((v) => v.replace(/%2C/g, ','))
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -63,7 +63,7 @@ export class RouterFacade {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
goToOrganization(organizationName: string) {
|
|
66
|
-
const safeOrgName = organizationName.replace(
|
|
66
|
+
const safeOrgName = organizationName.replace(/\//g, '')
|
|
67
67
|
const path = `${this.routerService.getOrganizationPageRoute()}/${safeOrgName}`
|
|
68
68
|
this.go({
|
|
69
69
|
path,
|