@eeacms/volto-cca-policy 0.1.23 → 0.1.25

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/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.25](https://github.com/eea/volto-cca-policy/compare/0.1.24...0.1.25) - 13 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Temporary disable external routes config (test issue in demo). [GhitaB - [`ea7ddfd`](https://github.com/eea/volto-cca-policy/commit/ea7ddfdb7311891d9e6f5946c2f6d4bca93cfef8)]
12
+ ### [0.1.24](https://github.com/eea/volto-cca-policy/compare/0.1.23...0.1.24) - 12 June 2023
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - Try fix external routes configuration. [GhitaB - [`2870d46`](https://github.com/eea/volto-cca-policy/commit/2870d46ae5ce3e7b8a1f7c05fb231fa9952a6f5a)]
7
17
  ### [0.1.23](https://github.com/eea/volto-cca-policy/compare/0.1.22...0.1.23) - 12 June 2023
8
18
 
9
19
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -24,19 +24,23 @@ import GeocharsWidget from './components/theme/Widgets/GeocharsWidget';
24
24
  import GeolocationWidget from './components/theme/Widgets/GeolocationWidget';
25
25
 
26
26
  const applyConfig = (config) => {
27
- const notInEnMission = /^(?!(\/en\/mission)).*$/;
28
- if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) {
29
- config.settings.externalRoutes = [
30
- ...(config.settings.externalRoutes || []),
31
- {
32
- match: {
33
- path: notInEnMission,
34
- exact: false,
35
- strict: false,
36
- },
37
- },
38
- ];
39
- }
27
+ // const notInEnMission = /^(?!(\/en\/mission)).*$/;
28
+ // WIP, test redirect issue (do not deploy in production)
29
+ // if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) {
30
+ // config.settings.externalRoutes = [
31
+ // ...(config.settings.externalRoutes || []),
32
+ // {
33
+ // match: {
34
+ // path: notInEnMission,
35
+ // exact: false,
36
+ // strict: false,
37
+ // },
38
+ // url(payload) {
39
+ // return payload.location.pathname;
40
+ // },
41
+ // },
42
+ // ];
43
+ // }
40
44
 
41
45
  config.settings.loadables.d3 = loadable.lib(() => import('d3'));
42
46