diff --git a/CHANGELOG.md b/CHANGELOG.md index 922d2429..c5310ba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +### [0.1.25](https://github.com/eea/volto-cca-policy/compare/0.1.24...0.1.25) - 13 June 2023 + +#### :hammer_and_wrench: Others + +- Temporary disable external routes config (test issue in demo). [GhitaB - [`ea7ddfd`](https://github.com/eea/volto-cca-policy/commit/ea7ddfdb7311891d9e6f5946c2f6d4bca93cfef8)] ### [0.1.24](https://github.com/eea/volto-cca-policy/compare/0.1.23...0.1.24) - 12 June 2023 #### :hammer_and_wrench: Others diff --git a/package.json b/package.json index 46dc83f3..8ba4b285 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-cca-policy", - "version": "0.1.24", + "version": "0.1.25", "description": "@eeacms/volto-cca-policy: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/index.js b/src/index.js index 0ad0f8e6..4272790a 100644 --- a/src/index.js +++ b/src/index.js @@ -24,22 +24,23 @@ import GeocharsWidget from './components/theme/Widgets/GeocharsWidget'; import GeolocationWidget from './components/theme/Widgets/GeolocationWidget'; const applyConfig = (config) => { - const notInEnMission = /^(?!(\/en\/mission)).*$/; - if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) { - config.settings.externalRoutes = [ - ...(config.settings.externalRoutes || []), - { - match: { - path: notInEnMission, - exact: false, - strict: false, - }, - url(payload) { - return payload.location.pathname; - }, - }, - ]; - } + // const notInEnMission = /^(?!(\/en\/mission)).*$/; + // WIP, test redirect issue (do not deploy in production) + // if (!__DEVELOPMENT__ && !process.env.RAZZLE_DISABLE_EXTERNAL_ROUTES) { + // config.settings.externalRoutes = [ + // ...(config.settings.externalRoutes || []), + // { + // match: { + // path: notInEnMission, + // exact: false, + // strict: false, + // }, + // url(payload) { + // return payload.location.pathname; + // }, + // }, + // ]; + // } config.settings.loadables.d3 = loadable.lib(() => import('d3'));