@eeacms/volto-marine-policy 2.0.0 → 2.0.1

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
- ### [2.0.0](https://github.com/eea/volto-marine-policy/compare/1.1.18...2.0.0) - 19 July 2024
7
+ ### [2.0.1](https://github.com/eea/volto-marine-policy/compare/2.0.0...2.0.1) - 26 July 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: remove externalRoutes property on trailing slashes [nileshgulia1 - [`94a379f`](https://github.com/eea/volto-marine-policy/commit/94a379f168642077a99d859aab31a353f2958c91)]
12
+
13
+ ## [2.0.0](https://github.com/eea/volto-marine-policy/compare/1.1.18...2.0.0) - 19 July 2024
8
14
 
9
15
  #### :bug: Bug Fixes
10
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -181,24 +181,24 @@ const applyConfig = (config) => {
181
181
 
182
182
  config.settings.available_colors = available_colors;
183
183
 
184
- config.settings.externalRoutes = [
185
- ...(config.settings.externalRoutes || []),
186
- ...(config.settings.prefixPath
187
- ? [
188
- {
189
- match: {
190
- path: /\/$/,
191
- exact: true,
192
- strict: true,
193
- },
194
-
195
- url(payload) {
196
- return payload.location.pathname;
197
- },
198
- },
199
- ]
200
- : []),
201
- ];
184
+ // config.settings.externalRoutes = [
185
+ // ...(config.settings.externalRoutes || []),
186
+ // ...(config.settings.prefixPath
187
+ // ? [
188
+ // {
189
+ // match: {
190
+ // path: /\/$/,
191
+ // exact: true,
192
+ // strict: true,
193
+ // },
194
+
195
+ // url(payload) {
196
+ // return payload.location.pathname;
197
+ // },
198
+ // },
199
+ // ]
200
+ // : []),
201
+ // ];
202
202
  config.settings.externalRoutes = [
203
203
  ...(config.settings.externalRoutes || []),
204
204
  {