@eeacms/volto-n2k 1.0.13 → 1.0.14

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,12 +4,16 @@ 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.0.14](https://github.com/eea/volto-n2k/compare/1.0.13...1.0.14) - 16 February 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - update [Miu Razvan - [`ceef220`](https://github.com/eea/volto-n2k/commit/ceef2206cb2be9b74d646861bbbc0a7639df3f99)]
7
12
  ### [1.0.13](https://github.com/eea/volto-n2k/compare/1.0.12...1.0.13) - 16 February 2023
8
13
 
9
14
  #### :hammer_and_wrench: Others
10
15
 
11
16
  - fix eslint [Miu Razvan - [`237b077`](https://github.com/eea/volto-n2k/commit/237b0774ede45e588bdebb001e21cc7f327936e4)]
12
- - updated Navigation [Miu Razvan - [`6961ebd`](https://github.com/eea/volto-n2k/commit/6961ebd9255ad20b53d9a527bc6c37c625c9c2f1)]
13
17
  ### [1.0.12](https://github.com/eea/volto-n2k/compare/1.0.11...1.0.12) - 14 February 2023
14
18
 
15
19
  ### [1.0.11](https://github.com/eea/volto-n2k/compare/1.0.10...1.0.11) - 3 February 2023
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-n2k",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "volto-n2k: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -14,6 +14,10 @@ import { withLocalStorage } from '@eeacms/volto-n2k/hocs';
14
14
  import Navigation from '../Navigation/Navigation';
15
15
  import { StickyContext } from '@eeacms/volto-bise/components';
16
16
 
17
+ function removeTrailingSlash(str) {
18
+ return str.replace(/\/+$/, '');
19
+ }
20
+
17
21
  const Navbar = (props) => {
18
22
  const currentLang = props.localStorage.get('N2K_LANGUAGE');
19
23
 
@@ -51,6 +55,7 @@ const Header = (props) => {
51
55
  const { stickyRef } = useContext(StickyContext);
52
56
  const isRoot = useMemo(
53
57
  () =>
58
+ removeTrailingSlash(props.pathname) !== '/natura2000/natura2000' &&
54
59
  matchPath(props.pathname, {
55
60
  path: config.settings.n2k.multilingualRoot,
56
61
  exact: true,