diff --git a/docs/changelog.md b/docs/changelog.md index ba09ad63c..e13b5aab3 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,16 @@ # Changelog +## 3.24.0 (2024-11-20) + +**✨ Improvements** + +- Keep user search results (scroll position and map fitbounds) when returning from a detail page (#1282) +- Refacto details top icons (#1304) + +**🔧 Maintenance** + +- Bump next from 13.2.4 to 14.2.15 (#1284) + ## 3.23.3 (2024-11-19) **🐛 Fixes** diff --git a/frontend/next.config.js b/frontend/next.config.js index b054c39b8..43634f9b3 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -69,6 +69,7 @@ const nextConfig = { }, experimental: { instrumentationHook: true, + scrollRestoration: true, }, }; diff --git a/frontend/package.json b/frontend/package.json index 71712552e..9b89e25e9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "geotrek-rando-frontend", - "version": "3.23.3", + "version": "3.24.0", "private": true, "scripts": { "debug": "NODE_OPTIONS='--inspect' next ./src", @@ -59,7 +59,7 @@ "leaflet-rastercoords": "^1.0.5", "leaflet.locatecontrol": "^0.81.1", "leaflet.offline": "^3.1.0", - "next": "13.2.4", + "next": "^14.2.15", "next-compose-plugins": "^2.2.1", "next-leaflet-cluster": "^1.0.0", "next-pwa": "^5.6.0", diff --git a/frontend/src/components/Header/Header.tsx b/frontend/src/components/Header/Header.tsx index 9cf67ebc1..0bf049306 100644 --- a/frontend/src/components/Header/Header.tsx +++ b/frontend/src/components/Header/Header.tsx @@ -3,7 +3,6 @@ import { FormattedMessage } from 'react-intl'; import { routes } from 'services/routes'; import { Link } from 'components/Link'; -import { Display } from 'hooks/useHideOnScrollDown'; import InlineMenu from 'components/InlineMenu'; import { GoToSearchButton } from 'components/GoToSearchButton'; @@ -15,11 +14,6 @@ import { useHeader } from './useHeader'; export const Header: React.FC = () => { const menuNode = useRef(null); const { config, menuItems, isDesktopMenu, intl } = useHeader(menuNode); - /** - * Disabled for now to handle the map on the search page - */ - // const headerState = useHideOnScrollDown(sizes.desktopHeader); - const headerState: Display = 'DISPLAYED'; const headerTop = config.headerTopHtml[intl.locale] ?? config.headerTopHtml.default; const headerBottom = config.headerBottomHtml[intl.locale] ?? config.headerBottomHtml.default; @@ -31,14 +25,7 @@ export const Header: React.FC = () => { )} -