@eeacms/volto-eea-website-policy 1.3.0 → 1.3.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/CHANGELOG.md +17 -1
- package/package.json +1 -1
- package/src/index.js +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +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
|
-
### [1.3.
|
|
7
|
+
### [1.3.2](https://github.com/eea/volto-eea-website-policy/compare/1.3.1...1.3.2) - 16 February 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(/en): threat non-en paths as external - refs #158717 [Alin Voinea - [`f2da4b1`](https://github.com/eea/volto-eea-website-policy/commit/f2da4b11fd0b2bfc7d148ffd7444cd92da9eea0c)]
|
|
12
|
+
|
|
13
|
+
### [1.3.1](https://github.com/eea/volto-eea-website-policy/compare/1.3.0...1.3.1) - 9 February 2023
|
|
14
|
+
|
|
15
|
+
#### :bug: Bug Fixes
|
|
16
|
+
|
|
17
|
+
- fix(ims): Add externalRoutes to /ims - refs #158717 [Alin Voinea - [`1e5988e`](https://github.com/eea/volto-eea-website-policy/commit/1e5988e67a91172333e8a0c017aad06b1d4259f3)]
|
|
18
|
+
|
|
19
|
+
### [1.3.0](https://github.com/eea/volto-eea-website-policy/compare/1.2.2...1.3.0) - 8 February 2023
|
|
8
20
|
|
|
9
21
|
#### :nail_care: Enhancements
|
|
10
22
|
|
|
@@ -37,6 +49,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
37
49
|
#### :hammer_and_wrench: Others
|
|
38
50
|
|
|
39
51
|
- Release 1.1.0 [Alin Voinea - [`0291b3b`](https://github.com/eea/volto-eea-website-policy/commit/0291b3bb7b4c6ab09ca98728885cea4051eac8e3)]
|
|
52
|
+
- yarn 3 [Alin Voinea - [`593aa58`](https://github.com/eea/volto-eea-website-policy/commit/593aa58eaa4d28aced0603b7f7dd125c857a6f54)]
|
|
40
53
|
### [1.0.4](https://github.com/eea/volto-eea-website-policy/compare/1.0.3...1.0.4) - 22 November 2022
|
|
41
54
|
|
|
42
55
|
#### :nail_care: Enhancements
|
|
@@ -82,6 +95,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
82
95
|
|
|
83
96
|
#### :hammer_and_wrench: Others
|
|
84
97
|
|
|
98
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`d153f54`](https://github.com/eea/volto-eea-website-policy/commit/d153f54e55e918fa4746e05488c734624eaf14a9)]
|
|
85
99
|
### [0.4.0](https://github.com/eea/volto-eea-website-policy/compare/0.3.3...0.4.0) - 19 September 2022
|
|
86
100
|
|
|
87
101
|
#### :hammer_and_wrench: Others
|
|
@@ -157,6 +171,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
157
171
|
- format index.js [Andrei Grigore - [`db4481a`](https://github.com/eea/volto-eea-website-policy/commit/db4481aeeba59a769272659f33278c902fc69bec)]
|
|
158
172
|
- Update index.js [Alexandru Ghica - [`dc09886`](https://github.com/eea/volto-eea-website-policy/commit/dc0988640a76a9914381b120f58bb61a9ab1eb39)]
|
|
159
173
|
- Added externalRoutes [Alexandru Ghica - [`b68135b`](https://github.com/eea/volto-eea-website-policy/commit/b68135b013fafa93a41ea602ea2fad30879abe0f)]
|
|
174
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`575cca6`](https://github.com/eea/volto-eea-website-policy/commit/575cca674602ca2e1c2a41300c47ba594ff49aa0)]
|
|
160
175
|
### [0.1.1](https://github.com/eea/volto-eea-website-policy/compare/0.1.0...0.1.1) - 4 March 2022
|
|
161
176
|
|
|
162
177
|
#### :hammer_and_wrench: Others
|
|
@@ -169,4 +184,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
169
184
|
|
|
170
185
|
#### :hammer_and_wrench: Others
|
|
171
186
|
|
|
187
|
+
- yarn bootstrap [Alin Voinea - [`9b4d197`](https://github.com/eea/volto-eea-website-policy/commit/9b4d197cbc7992566cb36524d190078d5ad21a44)]
|
|
172
188
|
- Initial commit [Alin Voinea - [`3800692`](https://github.com/eea/volto-eea-website-policy/commit/3800692f7a4de6460815bd6061facacb986cbef0)]
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -4,6 +4,20 @@ import installLayoutSettingsBlock from '@eeacms/volto-eea-website-policy/compone
|
|
|
4
4
|
import { addStylingFieldsetSchemaEnhancer } from '@eeacms/volto-eea-website-policy/components/Blocks/schema';
|
|
5
5
|
|
|
6
6
|
const applyConfig = (config) => {
|
|
7
|
+
// #158717#note-25 any path that isn't static, en or controlpanel is treated as external
|
|
8
|
+
if (!config.settings.publicURL.includes('localhost')) {
|
|
9
|
+
const notInEN = /^(?!.*(\/en|\/static|\/controlpanel|\/cypress)).*$/;
|
|
10
|
+
config.settings.externalRoutes = [
|
|
11
|
+
{
|
|
12
|
+
match: {
|
|
13
|
+
path: notInEN,
|
|
14
|
+
exact: false,
|
|
15
|
+
strict: false,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
|
|
7
21
|
// #137187 Keycloak integration
|
|
8
22
|
if (runtimeConfig['RAZZLE_KEYCLOAK'] === 'Yes') {
|
|
9
23
|
config.settings.externalRoutes = [
|