From 3558f52b84d28e8ca8dc0dfc8e19687ef6ead503 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 18 Apr 2021 20:12:46 +0200 Subject: [PATCH] Restore scroll position (#15) --- CHANGELOG.md | 4 ++++ apps/client/src/app/app-routing.module.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9326c2ee..74c0f603 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Optimized the data management for historical data - Optimized the exchange rate service +### Fixed + +- Restored the scroll position when opening a new page + ## 0.85.0 - 16.04.2021 ### Changed diff --git a/apps/client/src/app/app-routing.module.ts b/apps/client/src/app/app-routing.module.ts index 145744e9..dfa2c362 100644 --- a/apps/client/src/app/app-routing.module.ts +++ b/apps/client/src/app/app-routing.module.ts @@ -81,7 +81,8 @@ const routes: Routes = [ { preloadingStrategy: ModulePreloadService, // enableTracing: true // <-- debugging purposes only - relativeLinkResolution: 'legacy' + relativeLinkResolution: 'legacy', + scrollPositionRestoration: 'enabled' } ) ],