diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index d9f020593..78e292c6a 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -298,7 +298,9 @@ if (browserWindowEnv && browserWindowEnv.OFFICIAL_BISQ_MARKETS) { @NgModule({ imports: [RouterModule.forRoot(routes, { - initialNavigation: 'enabled' + initialNavigation: 'enabled', + scrollPositionRestoration: 'enabled', + anchorScrolling: 'enabled' })], exports: [RouterModule] }) diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index c76709430..b2dd5dc49 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -1,6 +1,6 @@
-
+

Genesis Block {{ blockHeight }}

@@ -80,7 +80,7 @@
-
+

diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 1d2fd844d..26a69b7eb 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -192,6 +192,7 @@ export class BlockComponent implements OnInit, OnDestroy { relativeTo: this.route, queryParams: { showDetails: false }, queryParamsHandling: 'merge', + fragment: 'block' }); } else { this.showDetails = true; @@ -199,6 +200,7 @@ export class BlockComponent implements OnInit, OnDestroy { relativeTo: this.route, queryParams: { showDetails: true }, queryParamsHandling: 'merge', + fragment: 'details' }); } }