@eeacms/volto-clms-theme 1.1.227 → 1.1.228

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,11 +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.1.227](https://github.com/eea/volto-clms-theme/compare/1.1.226...1.1.227) - 2 April 2025
7
+ ### [1.1.228](https://github.com/eea/volto-clms-theme/compare/1.1.227...1.1.228) - 3 April 2025
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Refs #285231 - Open in a new tab downloadable files (CclCard). [GhitaB - [`fc3cff8`](https://github.com/eea/volto-clms-theme/commit/fc3cff870468e1c09d38bdefe23184b207ec066b)]
11
+ - Refs #285231 - Open in a new tab all downloadable files. [GhitaB - [`6763b62`](https://github.com/eea/volto-clms-theme/commit/6763b62c6952727a0ec97deb57d666474d33b304)]
12
+ ### [1.1.227](https://github.com/eea/volto-clms-theme/compare/1.1.226...1.1.227) - 2 April 2025
13
+
12
14
  ### [1.1.226](https://github.com/eea/volto-clms-theme/compare/1.1.225...1.1.226) - 31 March 2025
13
15
 
14
16
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.227",
3
+ "version": "1.1.228",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -93,6 +93,11 @@ const UniversalLink = ({
93
93
  ? openLinkInNewTab
94
94
  : checkedURL.isMail || checkedURL.isTelephone || isExternal;
95
95
 
96
+ // All downloadable files to be opened in a new tab
97
+ if (checkedURL.url.includes('/@@download/')) {
98
+ openLinkInNewTab = true;
99
+ }
100
+
96
101
  // console.log({ openLinkInNewTab, isExternal, checkedURL });
97
102
 
98
103
  let tag = (