Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/reset scroll position on page change (#5753)

Mariam Saeed7dacc10946cc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 31d691c877..fff28224ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Respected the include indices flag in the search functionality of the _Financial Modeling Prep_ service
+- Fixed an issue where the scroll position was not restored when changing pages
## 2.208.0 - 2025-10-11
diff --git a/apps/client/src/app/app-routing.module.ts b/apps/client/src/app/app-routing.module.ts
index 0e5a2deadf..0ceee3725b 100644
--- a/apps/client/src/app/app-routing.module.ts
+++ b/apps/client/src/app/app-routing.module.ts
@@ -155,8 +155,9 @@ const routes: Routes = [
// Preload all lazy loaded modules with the attribute preload === true
{
anchorScrolling: 'enabled',
- preloadingStrategy: ModulePreloadService
- // enableTracing: true // <-- debugging purposes only
+ // enableTracing: true, // <-- debugging purposes only
+ preloadingStrategy: ModulePreloadService,
+ scrollPositionRestoration: 'top'
}
)
],