Skip to content

Commit

Permalink
Merge pull request #22 from eea/develop
Browse files Browse the repository at this point in the history
fix: remove externalRoutes property on trailing slashes
  • Loading branch information
claudiaifrim authored Jul 26, 2024
2 parents 919e821 + f72ab89 commit 3cff4a8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ 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).

### [2.0.0](https://github.com/eea/volto-marine-policy/compare/1.1.18...2.0.0) - 19 July 2024
### [2.0.1](https://github.com/eea/volto-marine-policy/compare/2.0.0...2.0.1) - 26 July 2024

#### :bug: Bug Fixes

- fix: remove externalRoutes property on trailing slashes [nileshgulia1 - [`94a379f`](https://github.com/eea/volto-marine-policy/commit/94a379f168642077a99d859aab31a353f2958c91)]

## [2.0.0](https://github.com/eea/volto-marine-policy/compare/1.1.18...2.0.0) - 19 July 2024

#### :bug: Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-marine-policy",
"version": "2.0.0",
"version": "2.0.1",
"description": "@eeacms/volto-marine-policy: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
36 changes: 18 additions & 18 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,24 +181,24 @@ const applyConfig = (config) => {

config.settings.available_colors = available_colors;

config.settings.externalRoutes = [
...(config.settings.externalRoutes || []),
...(config.settings.prefixPath
? [
{
match: {
path: /\/$/,
exact: true,
strict: true,
},

url(payload) {
return payload.location.pathname;
},
},
]
: []),
];
// config.settings.externalRoutes = [
// ...(config.settings.externalRoutes || []),
// ...(config.settings.prefixPath
// ? [
// {
// match: {
// path: /\/$/,
// exact: true,
// strict: true,
// },

// url(payload) {
// return payload.location.pathname;
// },
// },
// ]
// : []),
// ];
config.settings.externalRoutes = [
...(config.settings.externalRoutes || []),
{
Expand Down

0 comments on commit 3cff4a8

Please sign in to comment.