@eeacms/volto-clms-theme 1.1.236 → 1.1.237

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,11 @@ 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.237](https://github.com/eea/volto-clms-theme/compare/1.1.236...1.1.237) - 26 May 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #286059 - Technical Library search: fix search results URLs. [GhitaB - [`0ff7152`](https://github.com/eea/volto-clms-theme/commit/0ff7152d75ecd03e7eebc0366361c2d836c102c6)]
7
12
  ### [1.1.236](https://github.com/eea/volto-clms-theme/compare/1.1.235...1.1.236) - 23 May 2025
8
13
 
9
14
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.236",
3
+ "version": "1.1.237",
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",
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import penSVG from '@plone/volto/icons/pen.svg';
4
4
  import { Icon as VoltoIcon } from '@plone/volto/components';
5
5
  import { Label } from 'semantic-ui-react';
6
- import { Link } from 'react-router-dom';
6
+ import ExternalLink from '@eeacms/search/components/Result/ExternalLink';
7
7
  import { ResultContext } from '@eeacms/search';
8
8
  import { UniversalCard } from '@eeacms/volto-listing-block';
9
9
  import { cclDateFormat } from '@eeacms/volto-clms-theme/components/CclUtils';
@@ -28,8 +28,8 @@ const TechnicalLibraryItem = (props) => {
28
28
  title: (
29
29
  <>
30
30
  <div className="technical-library-title">
31
- <Link
32
- to={`${result.href}/@@download/file`}
31
+ <ExternalLink
32
+ href={`${result.href}/@@download/file`}
33
33
  title={result.title}
34
34
  className="technical-library-title"
35
35
  >
@@ -38,10 +38,10 @@ const TechnicalLibraryItem = (props) => {
38
38
  {result.isExpired && (
39
39
  <Label className="archived-item">Archived</Label>
40
40
  )}
41
- </Link>
41
+ </ExternalLink>
42
42
  {isAdmin && (
43
- <Link
44
- to={`${result.href}/edit`}
43
+ <ExternalLink
44
+ href={`${result.href}/edit`}
45
45
  target="_blank"
46
46
  rel="noopener noreferrer"
47
47
  className="technical-library-edit"
@@ -52,7 +52,7 @@ const TechnicalLibraryItem = (props) => {
52
52
  className="circled"
53
53
  title={'Edit'}
54
54
  />
55
- </Link>
55
+ </ExternalLink>
56
56
  )}
57
57
  </div>
58
58
  </>