@eeacms/volto-eea-website-policy 1.3.1 → 1.3.3
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 +15 -0
- package/package.json +1 -1
- package/src/index.js +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ 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.3](https://github.com/eea/volto-eea-website-policy/compare/1.3.2...1.3.3) - 17 February 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(externalRoutes): Consider everything outside /en as external routes - refs #158717 [Alin Voinea - [`cfa1bb7`](https://github.com/eea/volto-eea-website-policy/commit/cfa1bb756d2bf73cd492f1995116e2a17b36d414)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Do not override externalRoutes [Alin Voinea - [`feaa112`](https://github.com/eea/volto-eea-website-policy/commit/feaa1127ca81e67adafc3714a9bd5bcadb4af5a9)]
|
|
16
|
+
### [1.3.2](https://github.com/eea/volto-eea-website-policy/compare/1.3.1...1.3.2) - 16 February 2023
|
|
17
|
+
|
|
18
|
+
#### :bug: Bug Fixes
|
|
19
|
+
|
|
20
|
+
- fix(/en): threat non-en paths as external - refs #158717 [Alin Voinea - [`f2da4b1`](https://github.com/eea/volto-eea-website-policy/commit/f2da4b11fd0b2bfc7d148ffd7444cd92da9eea0c)]
|
|
21
|
+
|
|
7
22
|
### [1.3.1](https://github.com/eea/volto-eea-website-policy/compare/1.3.0...1.3.1) - 9 February 2023
|
|
8
23
|
|
|
9
24
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -4,10 +4,17 @@ 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
|
-
//
|
|
7
|
+
// #158717#note-25 any path that isn't static, en or controlpanel is treated as external
|
|
8
|
+
const notInEN = /^(?!.*(\/en|\/static|\/controlpanel|\/cypress)).*$/;
|
|
8
9
|
config.settings.externalRoutes = [
|
|
9
10
|
...(config.settings.externalRoutes || []),
|
|
10
|
-
{
|
|
11
|
+
{
|
|
12
|
+
match: {
|
|
13
|
+
path: notInEN,
|
|
14
|
+
exact: false,
|
|
15
|
+
strict: false,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
11
18
|
];
|
|
12
19
|
|
|
13
20
|
// #137187 Keycloak integration
|
|
@@ -44,6 +51,11 @@ const applyConfig = (config) => {
|
|
|
44
51
|
// (item) => item.code,
|
|
45
52
|
// ) || ['en'];
|
|
46
53
|
|
|
54
|
+
// Logo URL
|
|
55
|
+
if (config.settings.eea) {
|
|
56
|
+
config.settings.eea.logoTargetUrl = '/en';
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
// Block chooser
|
|
48
60
|
config.blocks.blocksConfig.image.mostUsed = false;
|
|
49
61
|
config.blocks.blocksConfig.video.mostUsed = false;
|