@eeacms/volto-cca-policy 0.1.22 → 0.1.24

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,11 +4,19 @@ 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.22](https://github.com/eea/volto-cca-policy/compare/0.1.21...0.1.22) - 9 June 2023
7
+ ### [0.1.24](https://github.com/eea/volto-cca-policy/compare/0.1.23...0.1.24) - 12 June 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Try fix external routes configuration. [GhitaB - [`2870d46`](https://github.com/eea/volto-cca-policy/commit/2870d46ae5ce3e7b8a1f7c05fb231fa9952a6f5a)]
12
+ ### [0.1.23](https://github.com/eea/volto-cca-policy/compare/0.1.22...0.1.23) - 12 June 2023
8
13
 
9
14
  #### :hammer_and_wrench: Others
10
15
 
11
- - test: Fix test config, coverage Refs #253277 [valentinab25 - [`7c2c269`](https://github.com/eea/volto-cca-policy/commit/7c2c26975607e37a6ac5ba2492c201ceb9ec9804)]
16
+ - Fix external routes condition, env var. [GhitaB - [`abfb933`](https://github.com/eea/volto-cca-policy/commit/abfb933b5b39039a3a485d9378b4b340fc01d9e5)]
17
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`77fece9`](https://github.com/eea/volto-cca-policy/commit/77fece9c1186ff7e8b789ae32c737ff7c8b98e97)]
18
+ ### [0.1.22](https://github.com/eea/volto-cca-policy/compare/0.1.21...0.1.22) - 9 June 2023
19
+
12
20
  ### [0.1.21](https://github.com/eea/volto-cca-policy/compare/0.1.20...0.1.21) - 8 June 2023
13
21
 
14
22
  ### [0.1.20](https://github.com/eea/volto-cca-policy/compare/0.1.19...0.1.20) - 8 June 2023
@@ -12,7 +12,7 @@ module.exports = {
12
12
  '@package/(.*)$': '<rootDir>/src/$1',
13
13
  '@root/(.*)$': '<rootDir>/src/$1',
14
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
15
- '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
15
+ '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
16
16
  '@plone/volto-slate':
17
17
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
18
18
  '~/(.*)$': '<rootDir>/src/$1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
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
@@ -25,7 +25,7 @@ import GeolocationWidget from './components/theme/Widgets/GeolocationWidget';
25
25
 
26
26
  const applyConfig = (config) => {
27
27
  const notInEnMission = /^(?!(\/en\/mission)).*$/;
28
- if (!__DEVELOPMENT__ || !process.env.RAZZLE_SET_EXTERNAL_ROUTES) {
28
+ if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) {
29
29
  config.settings.externalRoutes = [
30
30
  ...(config.settings.externalRoutes || []),
31
31
  {
@@ -34,6 +34,9 @@ const applyConfig = (config) => {
34
34
  exact: false,
35
35
  strict: false,
36
36
  },
37
+ url(payload) {
38
+ return payload.location.pathname;
39
+ },
37
40
  },
38
41
  ];
39
42
  }