@eeacms/volto-eea-website-theme 3.5.0 → 3.5.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,6 +4,20 @@ 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
|
+
### [3.5.1](https://github.com/eea/volto-eea-website-theme/compare/3.5.0...3.5.1) - 19 December 2024
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: download link when download is enabled on CTA block rfs#281622 [nileshgulia1 - [`1e111c7`](https://github.com/eea/volto-eea-website-theme/commit/1e111c77cd0b9ec8303d1571fafb6efab3f5e848)]
|
12
|
+
|
13
|
+
#### :house: Internal changes
|
14
|
+
|
15
|
+
- chore: package.json [Alin Voinea - [`1956de1`](https://github.com/eea/volto-eea-website-theme/commit/1956de189d6ef12a9117dca335c214131615e98d)]
|
16
|
+
|
17
|
+
#### :hammer_and_wrench: Others
|
18
|
+
|
19
|
+
- Update UniversalLink.jsx [Nilesh - [`1358d69`](https://github.com/eea/volto-eea-website-theme/commit/1358d6939493f48a26acb67fbdeacc98ade4c6d8)]
|
20
|
+
- fix only append @@download if internalUrl [nileshgulia1 - [`12e70bc`](https://github.com/eea/volto-eea-website-theme/commit/12e70bc79f7660589b1a84c933c56c6dac4e8da2)]
|
7
21
|
### [3.5.0](https://github.com/eea/volto-eea-website-theme/compare/3.4.0...3.5.0) - 16 December 2024
|
8
22
|
|
9
23
|
#### :rocket: New Features
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eeacms/volto-eea-website-theme",
|
3
|
-
"version": "3.5.
|
3
|
+
"version": "3.5.1",
|
4
4
|
"description": "@eeacms/volto-eea-website-theme: Volto add-on",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
@@ -82,4 +82,4 @@
|
|
82
82
|
"cypress:open": "make cypress-open",
|
83
83
|
"prepare": "husky install"
|
84
84
|
}
|
85
|
-
}
|
85
|
+
}
|
@@ -67,6 +67,10 @@ const UniversalLink = ({
|
|
67
67
|
}
|
68
68
|
}
|
69
69
|
|
70
|
+
if (download && isInternalURL(url)) {
|
71
|
+
url = url.includes('/@@download/file') ? url : `${url}/@@download/file`;
|
72
|
+
}
|
73
|
+
|
70
74
|
const isExternal = !isInternalURL(url);
|
71
75
|
const isDownload =
|
72
76
|
(!isExternal && url && url.includes('@@download')) || download;
|