Update canonical link with block hash

This commit is contained in:
Mononaut
2023-08-22 02:54:23 +09:00
committed by softsimon
parent b6f66a6a28
commit 368ab1dc66
3 changed files with 14 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ export class BisqBlockComponent implements OnInit, OnDestroy {
this.location.replaceState(
this.router.createUrlTree(['/bisq/block/', hash]).toString()
);
this.seoService.updateCanonical(this.location.path());
return this.bisqApiService.getBlock$(this.blockHash)
.pipe(catchError(this.caughtHttpError.bind(this)));
}),