@plone/volto 16.31.2 → 16.31.3

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.draft CHANGED
@@ -1,7 +1,7 @@
1
- ## 16.31.2 (2024-03-05)
1
+ ## 16.31.3 (2024-03-06)
2
2
 
3
3
  ### Bugfix
4
4
 
5
- - Fix translation error message. @robgietema [#5835](https://github.com/plone/volto/issues/5835)
5
+ - Fix multilingual redirector where it doesn't take into account the stored cookie in SSR. @robgietema [#5628](https://github.com/plone/volto/issues/5628)
6
6
 
7
7
 
Binary file
package/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 16.31.3 (2024-03-06)
12
+
13
+ ### Bugfix
14
+
15
+ - Fix multilingual redirector where it doesn't take into account the stored cookie in SSR. @robgietema [#5628](https://github.com/plone/volto/issues/5628)
16
+
11
17
  ## 16.31.2 (2024-03-05)
12
18
 
13
19
  ### Bugfix
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.31.2",
12
+ "version": "16.31.3",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.31.2",
3
+ "version": "16.31.3",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/server.jsx CHANGED
@@ -239,7 +239,7 @@ server.get('/*', (req, res) => {
239
239
  : store.getState().content.data?.language?.token ||
240
240
  config.settings.defaultLanguage;
241
241
 
242
- if (toBackendLang(initialLang) !== contentLang) {
242
+ if (toBackendLang(initialLang) !== contentLang && url !== '/') {
243
243
  const newLang = toReactIntlLang(
244
244
  new locale.Locales(contentLang).best(supported).toString(),
245
245
  );