@eeacms/volto-eea-website-policy 1.6.2 → 1.6.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 CHANGED
@@ -4,7 +4,13 @@ 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.6.2](https://github.com/eea/volto-eea-website-policy/compare/1.6.1...1.6.2) - 12 June 2023
7
+ ### [1.6.3](https://github.com/eea/volto-eea-website-policy/compare/1.6.2...1.6.3) - 13 June 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(notInEn): Fix regex to consider internal path only if the path starts with /en - refs #254258 [Alin Voinea - [`9e9ecd0`](https://github.com/eea/volto-eea-website-policy/commit/9e9ecd00a13ebe1767d11a145fc7869c36034e9e)]
12
+
13
+ ### [1.6.2](https://github.com/eea/volto-eea-website-policy/compare/1.6.1...1.6.2) - 13 June 2023
8
14
 
9
15
  #### :hammer_and_wrench: Others
10
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -17,7 +17,7 @@ const restrictedBlocks = [
17
17
 
18
18
  const applyConfig = (config) => {
19
19
  // #158717#note-25 any path that isn't static, en or controlpanel is treated as external
20
- const notInEN = /^(?!.*(#|\/en|\/static|\/controlpanel|\/cypress|\/login|\/logout|\/contact-form)).*$/;
20
+ const notInEN = /^(?!(#|\/en|\/static|\/controlpanel|\/cypress|\/login|\/logout|\/contact-form)).*$/;
21
21
  config.settings.externalRoutes = [
22
22
  ...(config.settings.externalRoutes || []),
23
23
  {